From 02dc9d1082738bb75450ef6dbf4e0bf32a1553db Mon Sep 17 00:00:00 2001
From: Mike Pall <mike>
Date: Sat, 23 Oct 2010 15:28:28 +0200
Subject: Avoid compiler warning.

---
 src/lj_lex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lj_lex.c b/src/lj_lex.c
index a808b88d..78c333b0 100644
--- a/src/lj_lex.c
+++ b/src/lj_lex.c
@@ -173,7 +173,7 @@ static void read_string(LexState *ls, int delim, TValue *tv)
 	    c = 10*c + (ls->current-'0');
 	    next(ls);
 	  } while (++i<3 && lj_ctype_isdigit(ls->current));
-	  if (c > UCHAR_MAX)
+	  if (c > 255)
 	    lj_lex_error(ls, TK_string, LJ_ERR_XESC);
 	  save(ls, c);
 	}
-- 
cgit v1.2.3-55-g6feb