Skip to content

Commit 85fda9d

Browse files
committed
XorBinaryFuse8 failed to construct on some data #31
1 parent 7eac146 commit 85fda9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastfilter/src/main/java/org/fastfilter/xor/XorBinaryFuse8.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static int calculateSegmentLength(int arity, int size) {
4444
if (arity == 3) {
4545
segmentLength = 1 << (int) Math.floor(Math.log(size) / Math.log(3.33) + 2.25);
4646
} else if (arity == 4) {
47-
return 1 << (int) Math.floor(Math.log(size) / Math.log(2.91) - 0.5);
47+
segmentLength = 1 << (int) Math.floor(Math.log(size) / Math.log(2.91) - 0.5);
4848
} else {
4949
// not supported
5050
segmentLength = 65536;

0 commit comments

Comments
 (0)