From b508d1f1c4b1b282cf56d7880a31519fce82268b Mon Sep 17 00:00:00 2001 From: Niels Date: Mon, 6 Jun 2016 18:50:39 +0200 Subject: [PATCH] fix proposal for #260 --- src/json.hpp | 4 ++-- src/json.hpp.re2c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/json.hpp b/src/json.hpp index 43646763..a8902bdb 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -8497,13 +8497,13 @@ basic_json_parser_63: if (*curptr == '-') { type = value_t::number_integer; - max = static_cast(std::numeric_limits::max()) + 1; + max = static_cast((std::numeric_limits::max)()) + 1; curptr++; } else { type = value_t::number_unsigned; - max = static_cast(std::numeric_limits::max()); + max = static_cast((std::numeric_limits::max())); } // count the significant figures diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index ba4fc007..9fe8ca68 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -7807,13 +7807,13 @@ class basic_json if (*curptr == '-') { type = value_t::number_integer; - max = static_cast(std::numeric_limits::max()) + 1; + max = static_cast((std::numeric_limits::max)()) + 1; curptr++; } else { type = value_t::number_unsigned; - max = static_cast(std::numeric_limits::max()); + max = static_cast((std::numeric_limits::max())); } // count the significant figures