Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/select/bloom.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static inline void css_bloom_add_hash(css_bloom bloom[CSS_BLOOM_SIZE],
unsigned int bit = hash & 0x1f; /* Top 5 bits */
unsigned int index = (hash >> 5) & INDEX_BITS_N; /* Next N bits */

bloom[index] |= (1 << bit);
bloom[index] |= (1u << bit);
}


Expand All @@ -85,7 +85,7 @@ static inline bool css_bloom_has_hash(const css_bloom bloom[CSS_BLOOM_SIZE],
unsigned int bit = hash & 0x1f; /* Top 5 bits */
unsigned int index = (hash >> 5) & INDEX_BITS_N; /* Next N bits */

return (bloom[index] & (1 << bit));
return (bloom[index] & (1u << bit));
}


Expand Down
Loading