From c1fa89adb9a7e13a9c2e45b2eaebf94da8e51748 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Mon, 14 Jun 2010 00:31:52 +0430 Subject: [PATCH] tok: accept uppercase hex digits --- tok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tok.c b/tok.c index 05d0709..473b4a1 100644 --- a/tok.c +++ b/tok.c @@ -113,7 +113,7 @@ static void readnum(void) char *c; if (base == 10 && buf[cur] == '0') base = 8; - while (cur < len && (c = strchr(digs, buf[cur]))) { + while (cur < len && (c = strchr(digs, tolower(buf[cur])))) { result *= base; result += c - digs; cur++; -- 2.11.4.GIT