Fixed parentheses in reader.h which were required to prevent the using of max macro

This commit is contained in:
IceTrailer 2018-07-31 22:23:53 +02:00
parent 2bbd33b332
commit cd28248611

View File

@ -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<double>::max()) {
if (d > (std::numeric_limits<double>::max)()) {
// Overflow
// TODO: internal::StrtodX should report overflow (or underflow)
RAPIDJSON_PARSE_ERROR(kParseErrorNumberTooBig, startOffset);