Skip to content

Commit 83af74c

Browse files
committed
Slightly more complex fingerprint calculation; only needed for xor+
1 parent d92c7f8 commit 83af74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xorfilter_plus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class XorFilterPlus {
172172
HashFamily* hasher;
173173

174174
inline FingerprintType fingerprint(const uint64_t hash) const {
175-
return (FingerprintType) hash;
175+
return (FingerprintType) (hash ^ (hash >> 32));
176176
}
177177

178178
public:

0 commit comments

Comments
 (0)