We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bbd33b + cd28248 commit 91df563Copy full SHA for 91df563
include/rapidjson/reader.h
@@ -1701,7 +1701,7 @@ class GenericReader {
1701
d = internal::StrtodNormalPrecision(d, p);
1702
1703
// Use > max, instead of == inf, to fix bogus warning -Wfloat-equal
1704
- if (d > std::numeric_limits<double>::max()) {
+ if (d > (std::numeric_limits<double>::max)()) {
1705
// Overflow
1706
// TODO: internal::StrtodX should report overflow (or underflow)
1707
RAPIDJSON_PARSE_ERROR(kParseErrorNumberTooBig, startOffset);
0 commit comments