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 3ac1c5e commit 6baad30Copy full SHA for 6baad30
src/select/bloom.h
@@ -68,7 +68,7 @@ static inline void css_bloom_add_hash(css_bloom bloom[CSS_BLOOM_SIZE],
68
unsigned int bit = hash & 0x1f; /* Top 5 bits */
69
unsigned int index = (hash >> 5) & INDEX_BITS_N; /* Next N bits */
70
71
- bloom[index] |= (1 << bit);
+ bloom[index] |= (1u << bit);
72
}
73
74
@@ -85,7 +85,7 @@ static inline bool css_bloom_has_hash(const css_bloom bloom[CSS_BLOOM_SIZE],
85
86
87
88
- return (bloom[index] & (1 << bit));
+ return (bloom[index] & (1u << bit));
89
90
91
0 commit comments