diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-07-27 13:32:59 -0300 |
commit | 0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b (patch) | |
tree | 0ac634fed90877130b1f102bf4075af999de2158 /llex.c | |
parent | 15231d4fb2f6984b25e0353ff46eda1a180b686d (diff) | |
download | lua-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.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"); |