base: fix parse_number_f64, 801 digits before '.'

Fixes #183
This commit is contained in:
Nigel Tao committed 2026-10-20 14:09:09 +11:00
1 parent fb8926614b
commit c99f5af9fe
3 files changed
+39 -8

No files matched your search

@@ -343,9 +343,12 @@ wuffs_private_impl__high_prec_dec__parse(wuffs_private_impl__high_prec_dec* h,
if (nd < WUFFS_PRIVATE_IMPL__HPD__DIGITS_PRECISION) {
h->digits[nd++] = (uint8_t)(*p - '0');
dp = (int32_t)nd;
} else if ('0' != *p) {
// Long-tail non-zeroes set the truncated bit.
h->truncated = true;
} else {
dp++;
if ('0' != *p) {
// Long-tail non-zeroes set the truncated bit.
h->truncated = true;
}
}
} else if (*p ==
((options &