Files
Scott Myron 7e1a7201c4 [ruby/json] Widen the json_decode_integer fast path to more 64-bit integers.
When this code was refactored in 9c4db31, the mantissa_digits captured
only the length of the mantissa and the negative sign was captured
separately. Additionally, the paths diverged between signed and
unsigned values. However, MAX_FAST_INTEGER_SIZE stayed at 18 which limited
the range of uint64_t and int64_t that took the fast path.

This change expands the range of uint64_t and int64_t's that can be
returned by the fast paths without falling back to
json_decode_large_number.

https://github.com/ruby/json/commit/0238abcaf3
2026-08-07 07:37:27 +00:00
..
2026-07-31 06:25:49 +00:00
2019-07-14 01:31:29 +09:00
2024-10-26 18:44:15 +09:00