mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
fix \x handling for 0-9
This commit is contained in:
parent
f50ce04ccb
commit
20bf698330
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ PR_LexString (void)
|
|||
c = 0;
|
||||
while (*pr_file_p && isxdigit (*pr_file_p)) {
|
||||
c *= 16;
|
||||
if (*pr_file_p <= 9)
|
||||
if (*pr_file_p <= '9')
|
||||
c += *pr_file_p - '0';
|
||||
else if (*pr_file_p <= 'F')
|
||||
c += *pr_file_p - 'A' + 10;
|
||||
|
|
Loading…
Reference in a new issue