Unsigned size type

This commit is contained in:
Andrew Twyman 2016-12-22 17:37:20 -08:00
parent bb0e389ffd
commit 887c6b1410

View File

@ -509,7 +509,7 @@ struct JsonParser final {
if (esc.length() < 4) {
return fail("bad \\u escape: " + esc, "");
}
for (int j = 0; j < 4; j++) {
for (size_t j = 0; j < 4; j++) {
if (!in_range(esc[j], 'a', 'f') && !in_range(esc[j], 'A', 'F')
&& !in_range(esc[j], '0', '9'))
return fail("bad \\u escape: " + esc, "");