Skip to content

Commit

Permalink
Merge branch 'feature/issue260' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jun 14, 2016
2 parents c744d59 + 44b210a commit 39213bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8498,13 +8498,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
Expand Down
4 changes: 2 additions & 2 deletions src/json.hpp.re2c
Original file line number Diff line number Diff line change
Expand Up @@ -7808,13 +7808,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
Expand Down

0 comments on commit 39213bf

Please sign in to comment.