diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-01 08:52:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-01 08:52:33 -0300 |
commit | 34b6664dcb28b18ca3f08ed5e36da094b007eb7b (patch) | |
tree | a5e2f06e198b146d9a324dc41e4cc4114df14246 /llex.c | |
parent | d35fff16d5eecf0116193be08586548b53b9f868 (diff) | |
download | lua-34b6664dcb28b18ca3f08ed5e36da094b007eb7b.tar.gz lua-34b6664dcb28b18ca3f08ed5e36da094b007eb7b.tar.bz2 lua-34b6664dcb28b18ca3f08ed5e36da094b007eb7b.zip |
better to use 'long' to represent UTF-8 code points
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.79 2014/07/18 12:17:54 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.80 2014/07/18 13:36:14 roberto Exp roberto $ |
3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -360,8 +360,8 @@ static int readhexaesc (LexState *ls) { | |||
360 | } | 360 | } |
361 | 361 | ||
362 | 362 | ||
363 | static unsigned int readutf8esc (LexState *ls) { | 363 | static unsigned long readutf8esc (LexState *ls) { |
364 | unsigned int r; | 364 | unsigned long r; |
365 | int i = 4; /* chars to be removed: '\', 'u', '{', and first digit */ | 365 | int i = 4; /* chars to be removed: '\', 'u', '{', and first digit */ |
366 | save_and_next(ls); /* skip 'u' */ | 366 | save_and_next(ls); /* skip 'u' */ |
367 | esccheck(ls, ls->current == '{', "missing '{'"); | 367 | esccheck(ls, ls->current == '{', "missing '{'"); |