Don't choke trying to accomodate when the initial array size was 0.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1543 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2004-12-13 06:42:53 +00:00
parent 058aa86400
commit 11c7589db5
@@ -444,7 +444,7 @@ public class IntListUtil
int size = list.length;
// expand size by powers of two until we're big enough
while (size <= index) {
size *= 2;
size = Math.max(size * 2, DEFAULT_LIST_SIZE);
}
// create a new list and copy the contents