diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 11:36:42 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-03 11:36:42 -0300 |
commit | 2c68e66570206aa1496f9c76fcf2a1a0f550d692 (patch) | |
tree | bcc6fd7939b12ef3a636d88ce0ac38da036660d8 /llex.c | |
parent | 7d0f41df41e9c513e7282356541b54beaf9ed20d (diff) | |
download | lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.tar.gz lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.tar.bz2 lua-2c68e66570206aa1496f9c76fcf2a1a0f550d692.zip |
Details
Several small changes from feedback on 5.4 alhpa rc1 (warnings,
typos in the manual, and the like)
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | 30 | ||
31 | 31 | ||
32 | #define next(ls) (ls->current = zgetc(ls->z)) | 32 | #define next(ls) (ls->current = zgetc(ls->z)) |
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
@@ -337,7 +337,7 @@ static unsigned long readutf8esc (LexState *ls) { | |||
337 | save_and_next(ls); /* skip 'u' */ | 337 | save_and_next(ls); /* skip 'u' */ |
338 | esccheck(ls, ls->current == '{', "missing '{'"); | 338 | esccheck(ls, ls->current == '{', "missing '{'"); |
339 | r = gethexa(ls); /* must have at least one digit */ | 339 | r = gethexa(ls); /* must have at least one digit */ |
340 | while ((save_and_next(ls), lisxdigit(ls->current))) { | 340 | while (cast_void(save_and_next(ls)), lisxdigit(ls->current)) { |
341 | i++; | 341 | i++; |
342 | esccheck(ls, r <= (0x7FFFFFFFu >> 4), "UTF-8 value too large"); | 342 | esccheck(ls, r <= (0x7FFFFFFFu >> 4), "UTF-8 value too large"); |
343 | r = (r << 4) + luaO_hexavalue(ls->current); | 343 | r = (r << 4) + luaO_hexavalue(ls->current); |