From 88fff015130f256488a4b4fd2d77b463daea6d87 Mon Sep 17 00:00:00 2001 From: IRainman Date: Wed, 7 May 2025 21:51:43 +0300 Subject: [PATCH] fix for the parse_number_string --- include/fast_float/ascii_number.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index 4692b79..5cbf2ca 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -396,14 +396,14 @@ parse_number_string(UC const *p, UC const *pend, // Now we can parse the explicit exponential part. am_pow_t exp_number = 0; // explicit exponential part if ((p != pend) && - (chars_format_t(options.format & chars_format::scientific) && - ((UC('e') == *p) || (UC('E') == *p))) + (chars_format_t(options.format & chars_format::scientific) && + ((UC('e') == *p) || (UC('E') == *p)) #ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN - || (chars_format_t(options.format & detail::basic_fortran_fmt) && - ((UC('+') == *p) || (UC('-') == *p) || (UC('d') == *p) || - (UC('D') == *p))) + || (chars_format_t(options.format & detail::basic_fortran_fmt) && + ((UC('+') == *p) || (UC('-') == *p) || (UC('d') == *p) || + (UC('D') == *p))) #endif - ) { + )) { UC const *location_of_e = p; #ifdef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN ++p;