We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b7e26 commit 5a28733Copy full SHA for 5a28733
libc/src/__support/HashTable/generic/bitmask_impl.inc
@@ -102,7 +102,7 @@ struct Group {
102
// - This only happens if there is at least 1 true match.
103
// - The chance of this happening is very low (< 1% chance per byte).
104
static constexpr bitmask_t ONES = repeat_byte(0x01ul);
105
- auto cmp = data ^ repeat_byte(byte);
+ auto cmp = data ^ repeat_byte(static_cast<bitmask_t>(byte) & 0xFFul);
106
auto result =
107
LIBC_NAMESPACE::Endian::to_little_endian((cmp - ONES) & ~cmp & MASK);
108
return {BitMask{result}};
0 commit comments