Browse Source

Avoid compiler warning.

Mike Pall 15 năm trước cách đây
mục cha
commit
02dc9d1082
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lj_lex.c

+ 1 - 1
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);
 	}