From 52ee91dd73199e068d31d3ac138d933ddd4fb9b1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 22 Feb 2001 14:15:18 -0300 Subject: better encapsulation of some types --- llex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index 8d72cb5e..5ed43493 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.76 2001/01/19 13:20:30 roberto Exp roberto $ +** $Id: llex.c,v 1.77 2001/02/09 20:22:29 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -36,7 +36,7 @@ void luaX_init (lua_State *L) { for (i=0; imarked = (unsigned char)(RESERVEDMARK+i); /* reserved word */ + ts->marked = RESERVEDMARK+i; /* reserved word */ } } @@ -255,7 +255,7 @@ static void read_string (LexState *LS, int del, SemInfo *seminfo) { c = 10*c + (LS->current-'0'); next(LS); } while (++i<3 && isdigit(LS->current)); - if (c != (unsigned char)c) { + if (c > UCHAR_MAX) { save(L, '\0', l); luaX_error(LS, "escape sequence too large", TK_STRING); } -- cgit v1.2.3-55-g6feb