diff options
-rw-r--r-- | src/ecs.c | 3 | ||||
-rw-r--r-- | src/tblcmp.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -56,7 +56,8 @@ void ccl2ecl (void) cclmec = ecgroup[ich]; if (cclmec > 0) { - ccltbl[cclp + newlen] = cclmec; + /* Note: range 1..256 is mapped to 1..255,0 */ + ccltbl[cclp + newlen] = (unsigned char) cclmec; ++newlen; } } diff --git a/src/tblcmp.c b/src/tblcmp.c index 9684525..81dfbc1 100644 --- a/src/tblcmp.c +++ b/src/tblcmp.c @@ -703,7 +703,8 @@ void mktemplate (int state[], int statenum, int comstate) if (state[i] == 0) tnxt[tmpbase + i] = 0; else { - transset[tsptr++] = i; + /* Note: range 1..256 is mapped to 1..255,0 */ + transset[tsptr++] = (unsigned char) i; tnxt[tmpbase + i] = comstate; } |