Skip to content

Commit 858fb2e

Browse files
author
Rafal Wojdyla
committed
Use toLong
1 parent 7924e6c commit 858fb2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/spotify/ratatool/samplers/BigSampler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object BigSampler {
6666
sampleSize: Int,
6767
module: Int): Option[T] = {
6868
//TODO: for now leave it up to jit/compiler to optimize
69-
if (math.abs(hash.padToLong) % module < sampleSize) {
69+
if (math.abs(hash.asLong) % module < sampleSize) {
7070
Some(e)
7171
} else {
7272
None

0 commit comments

Comments
 (0)