aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-07-27 13:32:59 -0300
commit0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch)
tree0ac634fed90877130b1f102bf4075af999de2158 /llex.c
parent15231d4fb2f6984b25e0353ff46eda1a180b686d (diff)
downloadlua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.gz
lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.tar.bz2
lua-0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b.zip
Added gcc option '-Wconversion'
No warnings for standard numerical types. Still pending alternative numerical types.
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");