Skip to content

Commit

Permalink
Changed cmtable_init to use isxdigit
Browse files Browse the repository at this point in the history
  • Loading branch information
jintonation committed Aug 20, 2014
1 parent 124616e commit e17a264
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 e17a264

Please sign in to comment.