From 4b0548d14dc98805d0ad83ed8a045c6f9f63b604 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Mon, 27 Apr 2015 16:52:56 +0430 Subject: [PATCH] tok: support hex constants with capital X Reported by Alexey Frunze . --- tok.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tok.c b/tok.c index a01575e..2f3b120 100644 --- a/tok.c +++ b/tok.c @@ -111,7 +111,7 @@ static void readnum(void) { int base = 10; num_bt = 4 | BT_SIGNED; - if (buf[cur] == '0' && buf[cur + 1] == 'x') { + if (buf[cur] == '0' && tolower(buf[cur + 1]) == 'x') { num_bt &= ~BT_SIGNED; base = 16; cur += 2; -- 2.11.4.GIT