From e5917323ec65578d5cae66e1541aac4fe638273f Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 15 Nov 2020 14:47:43 -0500 Subject: [PATCH] Pedantic member initialization. --- include/fast_float/float_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index d44b06d..5c2f303 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -126,8 +126,8 @@ fastfloat_really_inline value128 full_multiplication(uint64_t value1, #endif struct adjusted_mantissa { - uint64_t mantissa; - int power2; // a negative value indicate an invalid result + uint64_t mantissa{0}; + int power2{0}; // a negative value indicate an invalid result adjusted_mantissa() = default; // bool operator==(const adjusted_mantissa &o) const = default; bool operator==(const adjusted_mantissa &o) const {