aboutsummaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-01 08:52:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-10-01 08:52:33 -0300
commit34b6664dcb28b18ca3f08ed5e36da094b007eb7b (patch)
treea5e2f06e198b146d9a324dc41e4cc4114df14246 /llex.c
parentd35fff16d5eecf0116193be08586548b53b9f868 (diff)
downloadlua-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index 4f8756a6..66a3e3c4 100644
--- a/llex.c
+++ b/llex.c
@@ -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
363static unsigned int readutf8esc (LexState *ls) { 363static 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 '{'");