diff --git a/nd4s/src/main/scala/org/nd4s/samediff/SameDiff.scala b/nd4s/src/main/scala/org/nd4s/samediff/SameDiff.scala index e72ca37ed..79a185a68 100644 --- a/nd4s/src/main/scala/org/nd4s/samediff/SameDiff.scala +++ b/nd4s/src/main/scala/org/nd4s/samediff/SameDiff.scala @@ -63,7 +63,7 @@ case class SDIndexWrapper(end: Long) { case class SDIndexWrapper1(start: Int) { def ::(end: Int): SDIndex = - SDIndex.interval(start, end) + SDIndex.interval(start.toLong, end.toLong) } object --- extends SDIndex {