diff options
author | Paul Phillips <paulp@improving.org> | 2010-11-09 03:12:57 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-11-09 03:12:57 +0000 |
commit | 6cb5c25802ec68d31fccde6bf9ee2fd2e8e3ff45 (patch) | |
tree | 250b1a0c981f7118cf51684d81b61a80f576717b /src | |
parent | 107cf1ae8e934b0ef7a6b6e819193b2166f3c44b (diff) | |
download | scala-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.scala | 4 |
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 } } |