Commit b508d1f1 by Niels

fix proposal for #260

parent 04e1e7b5
...@@ -8497,13 +8497,13 @@ basic_json_parser_63: ...@@ -8497,13 +8497,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
......
...@@ -7807,13 +7807,13 @@ class basic_json ...@@ -7807,13 +7807,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment