diff options
| -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 |
