mirror of
https://github.com/nlohmann/json.git
synced 2025-07-15 07:41:50 +03:00
fix proposal for #260
This commit is contained in:
@ -8497,13 +8497,13 @@ basic_json_parser_63:
|
||||
if (*curptr == '-')
|
||||
{
|
||||
type = value_t::number_integer;
|
||||
max = static_cast<uint64_t>(std::numeric_limits<number_integer_t>::max()) + 1;
|
||||
max = static_cast<uint64_t>((std::numeric_limits<number_integer_t>::max)()) + 1;
|
||||
curptr++;
|
||||
}
|
||||
else
|
||||
{
|
||||
type = value_t::number_unsigned;
|
||||
max = static_cast<uint64_t>(std::numeric_limits<number_unsigned_t>::max());
|
||||
max = static_cast<uint64_t>((std::numeric_limits<number_unsigned_t>::max()));
|
||||
}
|
||||
|
||||
// count the significant figures
|
||||
|
Reference in New Issue
Block a user