diff options
author | rlar <rlar> | 2016-03-01 20:10:29 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-16 08:27:58 -0400 |
commit | 8756116ccb1f557814e06414ae522d612907585e (patch) | |
tree | a88babb1b92e813ad316c495ecc7765b8f5212f2 | |
parent | 1da19feba7c957e0f0af0c3eeadc29e8c82b0ca3 (diff) |
Fix two more casts
-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; } |