Skip to content

Commit 7202e6c

Browse files
committed
fix bf
1 parent 04c221c commit 7202e6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/paimon/common/utils/bloom_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ BloomFilter::BloomFilter(int64_t expected_entries, int32_t byte_length)
5656
}
5757

5858
Status BloomFilter::AddHash(int32_t hash1) {
59-
int32_t hash2 = hash1 >> 16;
59+
int32_t hash2 = static_cast<int32_t>(static_cast<uint32_t>(hash1) >> 16);
6060

6161
for (int32_t i = 1; i <= num_hash_functions_; i++) {
6262
int32_t combined_hash = hash1 + (i * hash2);

0 commit comments

Comments
 (0)