diff options
Diffstat (limited to 'src/library/scala/collection/parallel/mutable/ParArray.scala')
-rw-r--r-- | src/library/scala/collection/parallel/mutable/ParArray.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/library/scala/collection/parallel/mutable/ParArray.scala b/src/library/scala/collection/parallel/mutable/ParArray.scala index a1164b7b80..909b8eb5d7 100644 --- a/src/library/scala/collection/parallel/mutable/ParArray.scala +++ b/src/library/scala/collection/parallel/mutable/ParArray.scala @@ -102,8 +102,11 @@ self => val left = remaining if (left >= 2) { val splitpoint = left / 2 - Seq(new ParArrayIterator(i, i + splitpoint, arr) with SCPI, - new ParArrayIterator(i + splitpoint, until, arr) with SCPI) + val sq = Seq( + new ParArrayIterator(i, i + splitpoint, arr) with SCPI, + new ParArrayIterator(i + splitpoint, until, arr) with SCPI) + i = until + sq } else { Seq(this) } |