fix Issue 6795 - ICE(cgcs.c): Incrementing an enum array item

fix http://d.puremagic.com/issues/show_bug.cgi?id=6795