mirror of
https://github.com/nlohmann/json.git
synced 2026-07-20 01:14:55 +00:00
Merge branch 'feature/issue260' into develop
This commit is contained in:
+2
-2
@@ -8498,13 +8498,13 @@ basic_json_parser_63:
|
|||||||
if (*curptr == '-')
|
if (*curptr == '-')
|
||||||
{
|
{
|
||||||
type = value_t::number_integer;
|
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++;
|
curptr++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = value_t::number_unsigned;
|
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
|
// count the significant figures
|
||||||
|
|||||||
+2
-2
@@ -7808,13 +7808,13 @@ class basic_json
|
|||||||
if (*curptr == '-')
|
if (*curptr == '-')
|
||||||
{
|
{
|
||||||
type = value_t::number_integer;
|
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++;
|
curptr++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = value_t::number_unsigned;
|
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
|
// count the significant figures
|
||||||
|
|||||||
Reference in New Issue
Block a user