Using decimal notation.

This commit is contained in:
Daniel Lemire
2020-11-03 22:09:42 -05:00
parent 80db053be3
commit 146191d791
+1 -1
View File
@@ -294,7 +294,7 @@ static bool parse_float_fallback(const uint8_t *ptr, double *outDouble) {
*outDouble = simdjson::internal::from_chars((const char *)ptr);
// We do not accept infinite values. Yes, there is a std::isfinite function, but
// it appears to be broken in legacy libc++.
if ((*outDouble > 0x1.fffffffffffffp+1023) || (*outDouble < -0x1.fffffffffffffp+1023)) {
if ((*outDouble > 1.7976931348623157e308) || (*outDouble < -1.7976931348623157e308)) {
return false;
}
return true;