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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user