fix proposal for #260

This commit is contained in:
Niels 2016-06-06 18:50:39 +02:00
parent 04e1e7b586
commit b508d1f1c4
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -7807,13 +7807,13 @@ class basic_json
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