Skip to content

Commit d7a08c5

Browse files
authored
[libc] Fix buildbot failures (#156733)
Signed-off-by: Krishna Pandey <[email protected]>
1 parent 88c3825 commit d7a08c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc/src/__support/FPUtil/bfloat16.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ struct BFloat16 {
2929

3030
LIBC_INLINE BFloat16() = default;
3131

32-
template <typename T> LIBC_INLINE constexpr explicit BFloat16(T value) {
32+
template <typename T>
33+
LIBC_INLINE constexpr explicit BFloat16(T value)
34+
: bits(static_cast<uint16_t>(0U)) {
3335
if constexpr (cpp::is_floating_point_v<T>) {
3436
bits = fputil::cast<bfloat16>(value).bits;
3537
} else if constexpr (cpp::is_integral_v<T>) {

0 commit comments

Comments
 (0)