diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -350,7 +350,7 @@ static unsigned long readutf8esc (LexState *ls) { | |||
350 | int i = 4; /* chars to be removed: '\', 'u', '{', and first digit */ | 350 | int i = 4; /* chars to be removed: '\', 'u', '{', and first digit */ |
351 | save_and_next(ls); /* skip 'u' */ | 351 | save_and_next(ls); /* skip 'u' */ |
352 | esccheck(ls, ls->current == '{', "missing '{'"); | 352 | esccheck(ls, ls->current == '{', "missing '{'"); |
353 | r = gethexa(ls); /* must have at least one digit */ | 353 | r = cast_ulong(gethexa(ls)); /* must have at least one digit */ |
354 | while (cast_void(save_and_next(ls)), lisxdigit(ls->current)) { | 354 | while (cast_void(save_and_next(ls)), lisxdigit(ls->current)) { |
355 | i++; | 355 | i++; |
356 | esccheck(ls, r <= (0x7FFFFFFFu >> 4), "UTF-8 value too large"); | 356 | esccheck(ls, r <= (0x7FFFFFFFu >> 4), "UTF-8 value too large"); |