diff --git a/libc/src/__support/FPUtil/bfloat16.h b/libc/src/__support/FPUtil/bfloat16.h index b607fd68e838b..13e151208567d 100644 --- a/libc/src/__support/FPUtil/bfloat16.h +++ b/libc/src/__support/FPUtil/bfloat16.h @@ -29,7 +29,9 @@ struct BFloat16 { LIBC_INLINE BFloat16() = default; - template LIBC_INLINE constexpr explicit BFloat16(T value) { + template + LIBC_INLINE constexpr explicit BFloat16(T value) + : bits(static_cast(0U)) { if constexpr (cpp::is_floating_point_v) { bits = fputil::cast(value).bits; } else if constexpr (cpp::is_integral_v) {