commit 9fca43f5b060507942346e841fd39386ced6822b
parent 33d820d41d5fefdda90ccd77889a683290ab6c99
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 30 Aug 2001 17:54:14 -0300
details
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llex.c b/llex.c
@@ -1,5 +1,5 @@
/*
-** $Id: llex.c,v 1.88 2001/06/20 21:07:57 roberto Exp roberto $
+** $Id: llex.c,v 1.89 2001/07/22 00:59:36 roberto Exp $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@@ -78,7 +78,8 @@ void luaX_error (LexState *ls, const l_char *s, int token) {
void luaX_token2str (int token, l_char *s) {
- if (token < 256) {
+ if (token < FIRST_RESERVED) {
+ lua_assert(token == (l_char)token);
s[0] = (l_char)token;
s[1] = l_c('\0');
}