Cast to long to workaround a bug in animal-sniffer.

This commit is contained in:
Gary Gregory 2020-02-16 15:15:35 -05:00
parent 38c36b5685
commit 4d6946c43a
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}