diff --git a/libc/src/__support/HashTable/generic/bitmask_impl.inc b/libc/src/__support/HashTable/generic/bitmask_impl.inc index b825cb5fbc44a8..56b540d568d005 100644 --- a/libc/src/__support/HashTable/generic/bitmask_impl.inc +++ b/libc/src/__support/HashTable/generic/bitmask_impl.inc @@ -113,7 +113,8 @@ struct Group { } LIBC_INLINE IteratableBitMask occupied() const { - return {static_cast(mask_available().word ^ repeat_byte(0x80))}; + return { + {static_cast(mask_available().word ^ repeat_byte(0x80))}}; } }; } // namespace internal diff --git a/libc/src/__support/HashTable/table.h b/libc/src/__support/HashTable/table.h index d70ca4d2338056..288829b1cac977 100644 --- a/libc/src/__support/HashTable/table.h +++ b/libc/src/__support/HashTable/table.h @@ -333,7 +333,7 @@ struct HashTable { return {0, full_capacity() - available_slots, Group::load_aligned(&control(0)).occupied(), *this}; } - iterator end() const { return {0, 0, {0}, *this}; } + iterator end() const { return {0, 0, {BitMask{0}}, *this}; } LIBC_INLINE ENTRY *find(const char *key) { uint64_t primary = oneshot_hash(key);