diff options
Diffstat (limited to 'src/library')
-rwxr-xr-x | src/library/scala/collection/IndexedSeqOptimized.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/IndexedSeqOptimized.scala b/src/library/scala/collection/IndexedSeqOptimized.scala index e95b6475de..0d95108235 100755 --- a/src/library/scala/collection/IndexedSeqOptimized.scala +++ b/src/library/scala/collection/IndexedSeqOptimized.scala @@ -190,7 +190,7 @@ trait IndexedSeqOptimized[+A, +Repr] extends IndexedSeqLike[A, Repr] { self => i - start } - private def negLength(n: Int) = if (n == length) -1 else n + private def negLength(n: Int) = if (n >= length) -1 else n override /*SeqLike*/ def indexWhere(p: A => Boolean, from: Int): Int = { |