mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
fix some signed char index warnings
This commit is contained in:
parent
eaccc6ea8b
commit
9885aa5916
1 changed files with 3 additions and 3 deletions
|
@ -893,7 +893,7 @@ Cmd_GetToken (const char *str, qboolean legacy)
|
|||
if (*str == '\"')
|
||||
return Cmd_EndDoubleQuote (str);
|
||||
for (i = 0; i < strlen (str); i++)
|
||||
if (isspace (str[i]))
|
||||
if (isspace ((byte)str[i]))
|
||||
break;
|
||||
return i;
|
||||
}
|
||||
|
@ -1055,7 +1055,7 @@ Cmd_ProcessVariablesRecursive (dstring_t * dstr, int start)
|
|||
} else if (!dstr->str[i] && braces) { // No closing brace
|
||||
n = -1;
|
||||
break;
|
||||
} else if (!braces && !isalnum(dstr->str[i]) && dstr->str[i] != '_') {
|
||||
} else if (!braces && !isalnum((byte)dstr->str[i]) && dstr->str[i] != '_') {
|
||||
dstring_clearstr (varname);
|
||||
dstring_insert (varname, dstr->str + start + 1, i - start - 1, 0);
|
||||
// Nuke it, even if no match is found
|
||||
|
@ -1281,7 +1281,7 @@ Cmd_TokenizeString (const char *text, qboolean legacy)
|
|||
process = false;
|
||||
}
|
||||
space = 0;
|
||||
while (isspace (str[i])) {
|
||||
while (isspace ((byte)str[i])) {
|
||||
i++;
|
||||
space++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue