We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04c221c commit 7202e6cCopy full SHA for 7202e6c
1 file changed
src/paimon/common/utils/bloom_filter.cpp
@@ -56,7 +56,7 @@ BloomFilter::BloomFilter(int64_t expected_entries, int32_t byte_length)
56
}
57
58
Status BloomFilter::AddHash(int32_t hash1) {
59
- int32_t hash2 = hash1 >> 16;
+ int32_t hash2 = static_cast<int32_t>(static_cast<uint32_t>(hash1) >> 16);
60
61
for (int32_t i = 1; i <= num_hash_functions_; i++) {
62
int32_t combined_hash = hash1 + (i * hash2);
0 commit comments