diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_cparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_cparse.c b/src/lj_cparse.c index 5a4df556..c72dda89 100644 --- a/src/lj_cparse.c +++ b/src/lj_cparse.c | |||
@@ -164,7 +164,7 @@ static CPToken cp_integer(CPState *cp) | |||
164 | do { | 164 | do { |
165 | n = n*10 + (cp->c - '0'); | 165 | n = n*10 + (cp->c - '0'); |
166 | } while (lj_char_isdigit(cp_get(cp))); | 166 | } while (lj_char_isdigit(cp_get(cp))); |
167 | } else if (cp_get(cp) == 'x') { /* Hexadeximal. */ | 167 | } else if ((cp_get(cp)& ~0x20) == 'X') { /* Hexadecimal. */ |
168 | if (!lj_char_isxdigit(cp_get(cp))) | 168 | if (!lj_char_isxdigit(cp_get(cp))) |
169 | cp_err(cp, LJ_ERR_XNUMBER); | 169 | cp_err(cp, LJ_ERR_XNUMBER); |
170 | do { | 170 | do { |