Skip to content

Commit cd28248

Browse files
author
IceTrailer
committed
Fixed parentheses in reader.h which were required to prevent the using of max macro
1 parent 2bbd33b commit cd28248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/rapidjson/reader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1701,7 +1701,7 @@ class GenericReader {
17011701
d = internal::StrtodNormalPrecision(d, p);
17021702

17031703
// Use > max, instead of == inf, to fix bogus warning -Wfloat-equal
1704-
if (d > std::numeric_limits<double>::max()) {
1704+
if (d > (std::numeric_limits<double>::max)()) {
17051705
// Overflow
17061706
// TODO: internal::StrtodX should report overflow (or underflow)
17071707
RAPIDJSON_PARSE_ERROR(kParseErrorNumberTooBig, startOffset);

0 commit comments

Comments
 (0)