mirror of
https://github.com/dropbox/json11.git
synced 2025-03-07 19:56:40 +08:00
Unsigned size type
This commit is contained in:
parent
bb0e389ffd
commit
887c6b1410
@ -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, "");
|
||||
|
Loading…
Reference in New Issue
Block a user