Skip to content

Commit 5a28733

Browse files
fix
1 parent d5b7e26 commit 5a28733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/HashTable/generic/bitmask_impl.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct Group {
102102
// - This only happens if there is at least 1 true match.
103103
// - The chance of this happening is very low (< 1% chance per byte).
104104
static constexpr bitmask_t ONES = repeat_byte(0x01ul);
105-
auto cmp = data ^ repeat_byte(byte);
105+
auto cmp = data ^ repeat_byte(static_cast<bitmask_t>(byte) & 0xFFul);
106106
auto result =
107107
LIBC_NAMESPACE::Endian::to_little_endian((cmp - ONES) & ~cmp & MASK);
108108
return {BitMask{result}};

0 commit comments

Comments
 (0)