From c82cea9d321a8e2242feb0f9c0c0f61334ad15be Mon Sep 17 00:00:00 2001 From: Attie Grande Date: Thu, 6 Dec 2012 18:56:58 +0000 Subject: [PATCH] fixed l_isxdigit() macro Closes #97. --- src/load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load.c b/src/load.c index d88a704..bf6ee30 100644 --- a/src/load.c +++ b/src/load.c @@ -37,7 +37,7 @@ #define l_isalpha(c) (l_isupper(c) || l_islower(c)) #define l_isdigit(c) ('0' <= (c) && (c) <= '9') #define l_isxdigit(c) \ - (l_isdigit(c) || 'A' <= (c) || (c) <= 'F' || 'a' <= (c) || (c) <= 'f') + (l_isdigit(c) || ('A' <= (c) && (c) <= 'F') || ('a' <= (c) && (c) <= 'f')) /* Read one byte from stream, convert to unsigned char, then int, and return. return EOF on end of file. This corresponds to the