Cast to long to workaround a bug in animal-sniffer.
This commit is contained in:
parent
38c36b5685
commit
4d6946c43a
|
@ -116,7 +116,8 @@ public class DynamicHasher implements Hasher {
|
|||
buffer++;
|
||||
}
|
||||
return (int) Math.floorMod(function.apply(buffers.get(buffer), funcCount++),
|
||||
shape.getNumberOfBits());
|
||||
// Cast to long to workaround a bug in animal-sniffer.
|
||||
(long) shape.getNumberOfBits());
|
||||
}
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue