Cast is_digit() parameter to an int to avoid warnings when compiling under

IRIX
This commit is contained in:
Loring Holden 2000-04-03 15:33:04 +00:00
parent 2f10b85570
commit 05bb2f53a9

View file

@ -186,10 +186,10 @@ int Q_qstrcmp(char **os1, char **os2)
while (1) { while (1) {
in1 = in2 = n1 = n2 = 0; in1 = in2 = n1 = n2 = 0;
if ((in1 = isdigit(*s1))) if ((in1 = isdigit((int) *s1)))
n1 = strtol(s1, &s1, 10); n1 = strtol(s1, &s1, 10);
if ((in2 = isdigit(*s2))) if ((in2 = isdigit((int) *s2)))
n2 = strtol(s2, &s2, 10); n2 = strtol(s2, &s2, 10);
if (in1 && in2) { if (in1 && in2) {