From 18e55e48a8d0c845c9262eaf1469d3443c228f57 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Tue, 10 Mar 2026 17:06:04 -0400 Subject: [PATCH] lint --- include/fast_float/parse_number.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/fast_float/parse_number.h b/include/fast_float/parse_number.h index 008c246..ff9c53d 100644 --- a/include/fast_float/parse_number.h +++ b/include/fast_float/parse_number.h @@ -155,7 +155,7 @@ template <> struct from_chars_caller { // if std::float32_t is defined, and we are in C++23 mode; macro set for // float32; set value to float due to equivalence between float and // float32_t - float val; + float val = 0.0f; auto ret = from_chars_advanced(first, last, val, options); value = val; return ret; @@ -172,7 +172,7 @@ template <> struct from_chars_caller { // if std::float64_t is defined, and we are in C++23 mode; macro set for // float64; set value as double due to equivalence between double and // float64_t - double val; + double val = 0.0; auto ret = from_chars_advanced(first, last, val, options); value = val; return ret; @@ -456,8 +456,7 @@ template struct from_chars_advanced_caller { template <> struct from_chars_advanced_caller<1> { template - fastfloat_really_inline - FASTFLOAT_CONSTEXPR20 static from_chars_result_t + fastfloat_really_inline FASTFLOAT_CONSTEXPR20 static from_chars_result_t call(UC const *first, UC const *last, T &value, parse_options_t options) noexcept { return from_chars_float_advanced(first, last, value, options);