(svn r21327) -Fix: cases are always "off-by-one" w.r.t. to the case table as there is an implicit default case with index 0

This commit is contained in:
rubidium 2010-11-25 23:14:25 +00:00
parent 4e6d29351e
commit fad75f5d5a
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ struct UnmappedChoiceList : ZeroedMemoryAllocator {
char *str = this->strings[idx];
/* "<CASEn>" */
*d++ = i;
*d++ = i + 1;
/* "<LENn>" */
size_t len = strlen(str) + 1;