Unverified Commit 91df5631 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #1335 from IceTrailer/master

Fixed parentheses in reader.h which were required to prevent the using of max macro
parents 2bbd33b3 cd282486
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment