We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7924e6c commit 858fb2eCopy full SHA for 858fb2e
src/main/scala/com/spotify/ratatool/samplers/BigSampler.scala
@@ -66,7 +66,7 @@ object BigSampler {
66
sampleSize: Int,
67
module: Int): Option[T] = {
68
//TODO: for now leave it up to jit/compiler to optimize
69
- if (math.abs(hash.padToLong) % module < sampleSize) {
+ if (math.abs(hash.asLong) % module < sampleSize) {
70
Some(e)
71
} else {
72
None
0 commit comments