From 9fca43f5b060507942346e841fd39386ced6822b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Aug 2001 17:54:36 -0300 Subject: details --- llex.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index 68627f13..2680e6b1 100644 --- 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'); } -- cgit v1.2.3-55-g6feb