diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index 65f26eb..646eb89 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -656,7 +656,6 @@ parse_int_string(UC const *p, UC const *pend, T &value, if (len >= sizeof(uint32_t)) { digits = read_chars_to_unsigned(p); - } else { uint32_t const b0 = static_cast(p[0]); uint32_t const b1 = (len > 1) ? static_cast(p[1]) : 0x00u; diff --git a/include/fast_float/parse_number.h b/include/fast_float/parse_number.h index d37e155..6252cfb 100644 --- a/include/fast_float/parse_number.h +++ b/include/fast_float/parse_number.h @@ -334,7 +334,7 @@ parse_number_slow_path(UC const *first, UC const *last, T &value, bool bjf #endif ) noexcept { - parsed_number_string_t pns = + parsed_number_string_t const pns = #ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN bjf ? parse_number_string(first, last, options, true) : #endif @@ -378,7 +378,7 @@ from_chars_float_advanced(UC const *first, UC const *last, T &value, // only by the rare slow paths). Skipping their stores keeps the fat // parsed_number_string_t off the hot path. store_spans is a runtime argument, // so this reuses the single parse_number_string instantiation. - parsed_number_string_t pns = + parsed_number_string_t const pns = #ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN bjf ? parse_number_string(first, last, options, false) : #endif