Skip to content

Commit 146191d

Browse files
committed
Using decimal notation.
1 parent 80db053 commit 146191d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/simdjson/generic/numberparsing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
294294
*outDouble = simdjson::internal::from_chars((const char *)ptr);
295295
// We do not accept infinite values. Yes, there is a std::isfinite function, but
296296
// it appears to be broken in legacy libc++.
297-
if ((*outDouble > 0x1.fffffffffffffp+1023) || (*outDouble < -0x1.fffffffffffffp+1023)) {
297+
if ((*outDouble > 1.7976931348623157e308) || (*outDouble < -1.7976931348623157e308)) {
298298
return false;
299299
}
300300
return true;

0 commit comments

Comments
 (0)