diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 2.3 2004/04/30 20:13:38 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 2.4 2004/09/22 14:02:00 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 | */ |
@@ -64,7 +64,7 @@ void luaX_init (lua_State *L) { | |||
64 | 64 | ||
65 | const char *luaX_token2str (LexState *ls, int token) { | 65 | const char *luaX_token2str (LexState *ls, int token) { |
66 | if (token < FIRST_RESERVED) { | 66 | if (token < FIRST_RESERVED) { |
67 | lua_assert(token == (unsigned char)token); | 67 | lua_assert(token == cast(unsigned char, token)); |
68 | return (iscntrl(token)) ? luaO_pushfstring(ls->L, "char(%d)", token) : | 68 | return (iscntrl(token)) ? luaO_pushfstring(ls->L, "char(%d)", token) : |
69 | luaO_pushfstring(ls->L, "%c", token); | 69 | luaO_pushfstring(ls->L, "%c", token); |
70 | } | 70 | } |