Skip to content

Commit 18e55e4

Browse files
committed
lint
1 parent eb9ab42 commit 18e55e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

include/fast_float/parse_number.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ template <> struct from_chars_caller<std::float32_t> {
155155
// if std::float32_t is defined, and we are in C++23 mode; macro set for
156156
// float32; set value to float due to equivalence between float and
157157
// float32_t
158-
float val;
158+
float val = 0.0f;
159159
auto ret = from_chars_advanced(first, last, val, options);
160160
value = val;
161161
return ret;
@@ -172,7 +172,7 @@ template <> struct from_chars_caller<std::float64_t> {
172172
// if std::float64_t is defined, and we are in C++23 mode; macro set for
173173
// float64; set value as double due to equivalence between double and
174174
// float64_t
175-
double val;
175+
double val = 0.0;
176176
auto ret = from_chars_advanced(first, last, val, options);
177177
value = val;
178178
return ret;
@@ -456,8 +456,7 @@ template <size_t TypeIx> struct from_chars_advanced_caller {
456456

457457
template <> struct from_chars_advanced_caller<1> {
458458
template <typename T, typename UC>
459-
fastfloat_really_inline
460-
FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
459+
fastfloat_really_inline FASTFLOAT_CONSTEXPR20 static from_chars_result_t<UC>
461460
call(UC const *first, UC const *last, T &value,
462461
parse_options_t<UC> options) noexcept {
463462
return from_chars_float_advanced(first, last, value, options);

0 commit comments

Comments
 (0)