File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,8 @@ void CRollingBloomFilter::insert(Span<const unsigned char> vKey)
218
218
/* FastMod works with the upper bits of h, so it is safe to ignore that the lower bits of h are already used for bit. */
219
219
uint32_t pos = FastRange32 (h, data.size ());
220
220
/* The lowest bit of pos is ignored, and set to zero for the first bit, and to one for the second. */
221
- data[pos & ~1U ] = (data[pos & ~1U ] & ~((( uint64_t ) 1 ) << bit)) | (( uint64_t ) (nGeneration & 1 )) << bit;
222
- data[pos | 1 ] = (data[pos | 1 ] & ~((( uint64_t ) 1 ) << bit)) | (( uint64_t ) (nGeneration >> 1 )) << bit;
221
+ data[pos & ~1U ] = (data[pos & ~1U ] & ~(uint64_t { 1 } << bit)) | (uint64_t (nGeneration & 1 )) << bit;
222
+ data[pos | 1 ] = (data[pos | 1 ] & ~(uint64_t { 1 } << bit)) | (uint64_t (nGeneration >> 1 )) << bit;
223
223
}
224
224
}
225
225
You can’t perform that action at this time.
0 commit comments