more signed char indeces

This commit is contained in:
Bill Currie 2002-04-07 04:54:19 +00:00
parent ea9c1fc4ac
commit 197db0aca7

View file

@ -75,9 +75,9 @@ token *EXP_ParseString (char *str)
m = 0;
while(str[i] == ' ')
i++;
if (isdigit(str[i]) || str[i] == '.')
if (isdigit((byte)str[i]) || str[i] == '.')
{
while ((isdigit(str[i]) || str[i] == '.') && i < strlen(str) && m < 256)
while ((isdigit((byte)str[i]) || str[i] == '.') && i < strlen(str) && m < 256)
buf[m++] = str[i++];
buf[m] = 0;
new = EXP_NewToken();
@ -109,7 +109,7 @@ token *EXP_ParseString (char *str)
}
else
{
while(!(isdigit(str[i])) && str[i] != '.' && str[i] != '(' && str[i] != ')' && m < 256)
while(!(isdigit((byte)str[i])) && str[i] != '.' && str[i] != '(' && str[i] != ')' && m < 256)
buf[m++] = str[i++];
buf[m] = 0;
if (m)