Skip to content

Commit d672a74

Browse files
committed
Style.
1 parent 36ece56 commit d672a74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/filter/golomb.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ static uint64_t decode(bitreader& source, uint8_t modulo_exponent) NOEXCEPT
5656
inline uint64_t hash_to_range(const data_slice& item, uint64_t bound,
5757
const siphash_key& key) NOEXCEPT
5858
{
59+
constexpr auto shift = bits<uint64_t>;
5960
const auto product = uint128_t(siphash(key, item)) * uint128_t(bound);
60-
return (product >> bits<uint64_t>).convert_to<uint64_t>();
61+
return (product >> shift).convert_to<uint64_t>();
6162
}
6263

6364
static std::vector<uint64_t> hashed_set_construct(const data_stack& items,

0 commit comments

Comments
 (0)