From 20bf6983307acaf860de6a617d8c8b89e0dcadb8 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 19 Jun 2001 22:26:16 +0000 Subject: [PATCH] fix \x handling for 0-9 --- tools/qfcc/source/pr_lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/pr_lex.c b/tools/qfcc/source/pr_lex.c index 1a4f1e2bc..4c5d779ed 100644 --- a/tools/qfcc/source/pr_lex.c +++ b/tools/qfcc/source/pr_lex.c @@ -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;