mirror of
https://github.com/nlohmann/json.git
synced 2026-09-09 17:58:00 +00:00
Resolves the number-parsing conflict between the discard_number_values fast path (an early return for accept()-only calls that skips value conversion for short digit runs) and the contiguous number scanner's convert_number()/convert_integer() split: the discard check now runs as the first step of convert_number(), so both the byte-at-a-time scanner and the bulk contiguous path benefit from it. Signed-off-by: Niels Lohmann <mail@nlohmann.me>