mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
Using decimal notation.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user