diff options
author | Martin Odersky <odersky@gmail.com> | 2010-01-05 16:43:41 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2010-01-05 16:43:41 +0000 |
commit | 5d6a3f63826471ff27312a11e565b10b9e0999d9 (patch) | |
tree | 92d346c81089d8dc5e92757fbb7911035f88c4a7 /src/library | |
parent | 9e5fd5403aa6be5f7ac779c1000ff6b45d5daaac (diff) | |
download | scala-5d6a3f63826471ff27312a11e565b10b9e0999d9.tar.gz scala-5d6a3f63826471ff27312a11e565b10b9e0999d9.tar.bz2 scala-5d6a3f63826471ff27312a11e565b10b9e0999d9.zip |
Closes #2853. No review necessary.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/mutable/ArrayBuffer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/ArrayBuffer.scala b/src/library/scala/collection/mutable/ArrayBuffer.scala index c60cbcd68c..c88b9d3374 100644 --- a/src/library/scala/collection/mutable/ArrayBuffer.scala +++ b/src/library/scala/collection/mutable/ArrayBuffer.scala @@ -132,7 +132,7 @@ class ArrayBuffer[A](override protected val initialSize: Int) require(count >= 0, "removing negative number of elements") if (n < 0 || n > size0 - count) throw new IndexOutOfBoundsException(n.toString) copy(n + count, n, size0 - (n + count)) - size0 -= count + reduceToSize(size0 - count) } /** Removes the element on a given index position |