aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-24 09:39:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2003-03-24 09:39:34 -0300
commit30a411ab3cb70a1d20ff11e28505550dcd1027f2 (patch)
tree206f7ac1c398c801f8670f35ae3f9b83fd702fbf
parent5bb5a1831d04735ecd241062fbbb47dd740ba5f5 (diff)
downloadlua-30a411ab3cb70a1d20ff11e28505550dcd1027f2.tar.gz
lua-30a411ab3cb70a1d20ff11e28505550dcd1027f2.tar.bz2
lua-30a411ab3cb70a1d20ff11e28505550dcd1027f2.zip
chars from zio are always unsigned
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index c1df127e..a172b506 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.117 2002/12/04 17:38:31 roberto Exp roberto $ 2** $Id: llex.c,v 1.118 2003/02/28 17:19:47 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*/
@@ -93,7 +93,7 @@ void luaX_syntaxerror (LexState *ls, const char *msg) {
93 93
94const char *luaX_token2str (LexState *ls, int token) { 94const char *luaX_token2str (LexState *ls, int token) {
95 if (token < FIRST_RESERVED) { 95 if (token < FIRST_RESERVED) {
96 lua_assert(token == (char)token); 96 lua_assert(token == (unsigned char)token);
97 return luaO_pushfstring(ls->L, "%c", token); 97 return luaO_pushfstring(ls->L, "%c", token);
98 } 98 }
99 else 99 else