Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] fix -Wmissing-braces #77345

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libc/src/__support/HashTable/generic/bitmask_impl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ struct Group {
}

LIBC_INLINE IteratableBitMask occupied() const {
return {static_cast<bitmask_t>(mask_available().word ^ repeat_byte(0x80))};
return {{static_cast<bitmask_t>(mask_available().word ^ repeat_byte(0x80))}};
}
};
} // namespace internal
Expand Down
2 changes: 1 addition & 1 deletion libc/src/__support/HashTable/table.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, {{0}}, *this}; }

LIBC_INLINE ENTRY *find(const char *key) {
uint64_t primary = oneshot_hash(key);
Expand Down
Loading