Adding a remark.

This commit is contained in:
Daniel Lemire 2019-08-01 11:33:51 -04:00
parent 4c7d384e9a
commit 66ffc1b2d6
1 changed files with 1 additions and 0 deletions

View File

@ -547,6 +547,7 @@ static really_inline bool parse_number(const uint8_t *const buf, ParsedJson &pj,
while ((*start == '0') || (*start == '.')) {
start++;
}
// we over-decrement by one when there is a '.'
digit_count -= (start - start_digits);
if (digit_count >= 19) {
// Ok, chances are good that we had an overflow!