aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/llex.c b/llex.c
index 3446f4e0..b2e77c9c 100644
--- a/llex.c
+++ b/llex.c
@@ -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");