Commit 6a9508866f6240fb6a07dc96aa40c05340283133

Martin Mitas 2016-10-04T23:32:46

Fix macro ISXDIGIT_.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/md4c/md4c.c b/md4c/md4c.c
index 0da72ab..cd2cf37 100644
--- a/md4c/md4c.c
+++ b/md4c/md4c.c
@@ -183,7 +183,7 @@ md_log(MD_CTX* ctx, const char* fmt, ...)
 #define ISLOWER_(ch)            (_T('a') <= (ch) && (ch) <= _T('z'))
 #define ISALPHA_(ch)            (ISUPPER_(ch) || ISLOWER_(ch))
 #define ISDIGIT_(ch)            (_T('0') <= (ch) && (ch) <= _T('9'))
-#define ISXDIGIT_(ch)           (ISDIGIT_(ch) || (_T('a') < (ch) && (ch) <= _T('f') || (_T('A') < (ch) && (ch) <= _T('F'))
+#define ISXDIGIT_(ch)           (ISDIGIT_(ch) || (_T('a') < (ch) && (ch) <= _T('f')) || (_T('A') < (ch) && (ch) <= _T('F')))
 #define ISALNUM_(ch)            (ISALPHA_(ch) || ISDIGIT_(ch))
 #define ISANYOF_(ch, palette)   (md_strchr((palette), (ch)) != NULL)