summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-11-09 03:12:57 +0000
committerPaul Phillips <paulp@improving.org>2010-11-09 03:12:57 +0000
commit6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45 (patch)
tree250b1a0c981f7118cf51684d81b61a80f576717b /src
parent107cf1ae8e934b0ef7a6b6e819193b2166f3c44b (diff)
downloadscala-6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45.tar.gz
scala-6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45.tar.bz2
scala-6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45.zip
Iteration bug in TrieIterator.
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/collection/immutable/HashSet.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/collection/immutable/HashSet.scala b/src/library/scala/collection/immutable/HashSet.scala
index 7d27531e8d..5a65e69d4d 100644
--- a/src/library/scala/collection/immutable/HashSet.scala
+++ b/src/library/scala/collection/immutable/HashSet.scala
@@ -301,7 +301,7 @@ time { mNew.iterator.foreach( p => ()) }
}
@scala.annotation.tailrec private[this] def next0(elems: Array[HashSet[A]], i: Int): A = {
- if (i == elems.length-1) { // reached end of level, pop stack
+ if (i == elems.length - 1) { // reached end of level, pop stack
depth -= 1
if (depth >= 0) {
arrayD = arrayStack(depth)
@@ -327,7 +327,7 @@ time { mNew.iterator.foreach( p => ()) }
case m: HashSet1[A] => m.key
case m =>
subIter = m.iterator
- subIter.next
+ next
}
}