From 8a0a0c4fc1afeabd65d55302e900aac2594e3bc5 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Sun, 15 Nov 2020 14:51:54 -0500 Subject: [PATCH] Being pedantic. --- include/fast_float/float_common.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 5c2f303..7879654 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -136,10 +136,10 @@ struct adjusted_mantissa { }; struct decimal { - uint32_t num_digits; - int32_t decimal_point; - bool negative; - bool truncated; + uint32_t num_digits{0}; + int32_t decimal_point{0}; + bool negative{false}; + bool truncated{false}; uint8_t digits[max_digits]; decimal() = default; // Copies are not allowed since this is a fat object.