diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-24 09:39:34 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-03-24 09:39:34 -0300 |
commit | 30a411ab3cb70a1d20ff11e28505550dcd1027f2 (patch) | |
tree | 206f7ac1c398c801f8670f35ae3f9b83fd702fbf | |
parent | 5bb5a1831d04735ecd241062fbbb47dd740ba5f5 (diff) | |
download | lua-30a411ab3cb70a1d20ff11e28505550dcd1027f2.tar.gz lua-30a411ab3cb70a1d20ff11e28505550dcd1027f2.tar.bz2 lua-30a411ab3cb70a1d20ff11e28505550dcd1027f2.zip |
chars from zio are always unsigned
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | ||
94 | const char *luaX_token2str (LexState *ls, int token) { | 94 | const 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 |