]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Avoid compiler warning.
authorMike Pall <mike>
Sat, 23 Oct 2010 13:28:28 +0000 (15:28 +0200)
committerMike Pall <mike>
Sat, 23 Oct 2010 13:28:28 +0000 (15:28 +0200)
src/lj_lex.c

index a808b88d8fb5cbccdcf92925df0db0ad15123f35..78c333b0aeb24abaa0403ec47ef8f6b145b15f5c 100644 (file)
@@ -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);
        }