fix \x handling for 0-9

This commit is contained in:
Bill Currie 2001-06-19 22:26:16 +00:00
parent f50ce04ccb
commit 20bf698330

View file

@ -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;