summaryrefslogtreecommitdiff
path: root/llex.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-11-24 17:16:03 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-11-24 17:16:03 -0200
commit1d99a7360beaf1a50a3739413b1ad6ed4b71491d (patch)
treec34e5b49da29838858f2e9bfc46eac29816cd13f /llex.c
parent2f82bf6fe940557fb5258c65c03e18f097ff831f (diff)
downloadlua-1d99a7360beaf1a50a3739413b1ad6ed4b71491d.tar.gz
lua-1d99a7360beaf1a50a3739413b1ad6ed4b71491d.tar.bz2
lua-1d99a7360beaf1a50a3739413b1ad6ed4b71491d.zip
details
Diffstat (limited to 'llex.c')
-rw-r--r--llex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/llex.c b/llex.c
index 71b52510..2b9ec68c 100644
--- a/llex.c
+++ b/llex.c
@@ -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
65const char *luaX_token2str (LexState *ls, int token) { 65const 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 }