Index: src/json-parser.h |
diff --git a/src/json-parser.h b/src/json-parser.h |
index b5dc33eb5713bd521444370c5de7fbd7017c3e5e..973e9a0fe3b279cc79bb9fab9c2a8a66824489de 100644 |
--- a/src/json-parser.h |
+++ b/src/json-parser.h |
@@ -311,7 +311,7 @@ ParseElementResult JsonParser<seq_one_byte>::ParseElement( |
} else { |
do { |
int d = c0_ - '0'; |
- if (index > 429496729U - ((d > 5) ? 1 : 0)) break; |
+ if (index > 429496729U - ((d + 3) >> 3)) break; |
index = (index * 10) + d; |
Advance(); |
} while (IsDecimalDigit(c0_)); |