Skip to content

Commit

Permalink
Merge pull request #3881 from jamestn/patch-1
Browse files Browse the repository at this point in the history
Changed cmtable_init to use isxdigit
  • Loading branch information
yebblies committed Aug 20, 2014
2 parents 124616e + e17a264 commit b54743d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.c
Expand Up @@ -58,7 +58,7 @@ static void cmtable_init()
{
if ('0' <= c && c <= '7')
cmtable[c] |= CMoctal;
if (isdigit(c) || ('a' <= c && c <= 'f') || ('A' <= c && c <= 'F'))
if (isxdigit(c))
cmtable[c] |= CMhex;
if (isalnum(c) || c == '_')
cmtable[c] |= CMidchar;
Expand Down

0 comments on commit b54743d

Please sign in to comment.