From cd2824861114fab95ec1b187b034cf6f76609fab Mon Sep 17 00:00:00 2001 From: IceTrailer Date: Tue, 31 Jul 2018 22:23:53 +0200 Subject: [PATCH] Fixed parentheses in reader.h which were required to prevent the using of max macro --- include/rapidjson/reader.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rapidjson/reader.h b/include/rapidjson/reader.h index 4c99c93..4bbde9e 100644 --- a/include/rapidjson/reader.h +++ b/include/rapidjson/reader.h @@ -1701,7 +1701,7 @@ private: d = internal::StrtodNormalPrecision(d, p); // Use > max, instead of == inf, to fix bogus warning -Wfloat-equal - if (d > std::numeric_limits::max()) { + if (d > (std::numeric_limits::max)()) { // Overflow // TODO: internal::StrtodX should report overflow (or underflow) RAPIDJSON_PARSE_ERROR(kParseErrorNumberTooBig, startOffset);