[libc] Zero initialize Uint<T>::val
authorMikhail R. Gadelha <mikhail@igalia.com>
Thu, 20 Apr 2023 16:43:46 +0000 (13:43 -0300)
committerMikhail R. Gadelha <mikhail@igalia.com>
Thu, 20 Apr 2023 16:47:55 +0000 (13:47 -0300)
commitc39dcf54bb0494f319cdc712d24607433bd7f30a
treec040fcb4bc66f6e37d1de87ff0b5285002dad285
parentda784e77da7715f7c1da9918e1a2bf2239c5fd06
[libc] Zero initialize Uint<T>::val

This fix a regression introduced by commit 5db12eca1f70bb9c2dab33ff88dcccdfba75af6e

Fixes the compilation failure reported by libc-x86_64-debian-gcc-fullbuild-dbg:

.../libc/src/__support/UInt.h:26:31: note: ‘struct __llvm_libc::cpp::UInt<192>’ has no user-provided default constructor
   26 | template <size_t Bits> struct UInt {
      |                               ^~~~
.../libc/src/__support/UInt.h:38:13: note: constructor is not user-provided because it is explicitly defaulted in the class body
   38 |   constexpr UInt() = default;
libc/src/__support/UInt.h