I7000: Fix compiler warnings comparing const char to a negative integer.

This commit is contained in:
Mark Pizzolato 2018-05-09 22:31:29 -07:00
parent 818032fd24
commit 9d04c49641
3 changed files with 3 additions and 3 deletions

View file

@ -446,7 +446,7 @@ parse_sym(CONST char *cptr, t_addr addr, UNIT * uptr, t_value * val, int32 sw)
i = 0;
while (*cptr != '\0' && i < 6) {
d <<= 6;
if (sim_ascii_to_six[0177 & *cptr] != -1)
if (sim_ascii_to_six[0177 & *cptr] != (const char)-1)
d |= sim_ascii_to_six[0177 & *cptr];
cptr++;
i++;

View file

@ -1068,7 +1068,7 @@ parse_sym(CONST char *cptr, t_addr addr, UNIT * uptr, t_value * val, int32 sw)
i = 0;
while (*cptr != '\0' && i < 5) {
d <<= 8;
if (sim_ascii_to_six[0177 & *cptr] != -1)
if (sim_ascii_to_six[0177 & *cptr] != (const char)-1)
d |= bcd_mem[(int)sim_ascii_to_six[0177 & *cptr]];
cptr++;
i++;

View file

@ -1025,7 +1025,7 @@ parse_sym(CONST char *cptr, t_addr addr, UNIT * uptr, t_value * val, int32 sw)
i = 0;
while (*cptr != '\0' && i < 6) {
d <<= 6;
if (ascii_to_mem[0177 & *cptr] != -1)
if (ascii_to_mem[0177 & *cptr] != (const char)-1)
d |= ascii_to_mem[0177 & *cptr];
cptr++;
i++;