diff options
author | Martin Odersky <odersky@gmail.com> | 2008-12-08 19:06:16 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-12-08 19:06:16 +0000 |
commit | 0dde1442dca20cec6142d012b12398d99c1e6b82 (patch) | |
tree | 00cf4270efa5839b9744916ca6dba563b4e2c2dc /src/library | |
parent | c8107b0d95890b29ffebe101fc54ce0885511de4 (diff) | |
download | scala-0dde1442dca20cec6142d012b12398d99c1e6b82.tar.gz scala-0dde1442dca20cec6142d012b12398d99c1e6b82.tar.bz2 scala-0dde1442dca20cec6142d012b12398d99c1e6b82.zip |
added comments; better errror messages; trace u...
added comments; better errror messages; trace utility
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/mutable/ResizableArray.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/mutable/ResizableArray.scala b/src/library/scala/collection/mutable/ResizableArray.scala index 211d785a61..19f9e3d6da 100644 --- a/src/library/scala/collection/mutable/ResizableArray.scala +++ b/src/library/scala/collection/mutable/ResizableArray.scala @@ -23,7 +23,7 @@ import Predef._ trait ResizableArray[A] extends RandomAccessSeq[A] { protected def initialSize: Int = 16 - protected var array: Array[AnyRef] = new Array[AnyRef](initialSize) + protected var array: Array[AnyRef] = new Array[AnyRef](initialSize min 1) private var size1: Int = 0 protected def size0: Int = size1 protected def size0_=(sz: Int) { size1 = sz } |