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);