From 146191d791d084533c8124411143385c5581d4d1 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 3 Nov 2020 22:09:42 -0500 Subject: [PATCH] Using decimal notation. --- include/simdjson/generic/numberparsing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simdjson/generic/numberparsing.h b/include/simdjson/generic/numberparsing.h index e0b1fa5fd..6efc6680a 100644 --- a/include/simdjson/generic/numberparsing.h +++ b/include/simdjson/generic/numberparsing.h @@ -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;