Skip to content

Commit fad84a2

Browse files
author
MarcoFalke
committed
refactor: Fixup uint64_t-cast style in touched line
1 parent fa04187 commit fad84a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common/bloom.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ void CRollingBloomFilter::insert(Span<const unsigned char> vKey)
218218
/* 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. */
219219
uint32_t pos = FastRange32(h, data.size());
220220
/* 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;
223223
}
224224
}
225225

0 commit comments

Comments
 (0)