diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-10-02 16:27:51 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2009-10-02 16:27:51 +0000 |
commit | 284788dbe1ca5b9889230a1e1614b231f5bd25e1 (patch) | |
tree | 37b8a5a49bf606d91540c0714f58f0aa4b366bd0 /src | |
parent | 154cad734b72b8577c3dbea6a5ef05cd5ba8a550 (diff) | |
download | scala-284788dbe1ca5b9889230a1e1614b231f5bd25e1.tar.gz scala-284788dbe1ca5b9889230a1e1614b231f5bd25e1.tar.bz2 scala-284788dbe1ca5b9889230a1e1614b231f5bd25e1.zip |
Fixed issue #2427: ListBuffer.update wrongly ch...
Fixed issue #2427: ListBuffer.update wrongly changes list size
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/collection/mutable/ListBuffer.scala | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/library/scala/collection/mutable/ListBuffer.scala b/src/library/scala/collection/mutable/ListBuffer.scala index de7bd72c7d..7d40719b02 100644 --- a/src/library/scala/collection/mutable/ListBuffer.scala +++ b/src/library/scala/collection/mutable/ListBuffer.scala @@ -62,7 +62,6 @@ final class ListBuffer[A] val newElem = new :: (x, start.tail); if (last0 eq start) { last0 = newElem - len += 1 } start = newElem } else { @@ -75,7 +74,6 @@ final class ListBuffer[A] val newElem = new :: (x, cursor.tail.tail) if (last0 eq cursor.tail) { last0 = newElem - len += 1 } cursor.asInstanceOf[::[A]].tl = newElem } |