mirror of
https://github.com/cc65/cc65.git
synced 2024-12-31 11:32:00 +00:00
Decrease the minimum size of a collection.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5211 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
c9ddc44ebe
commit
bd233ac916
@ -6,7 +6,7 @@
|
||||
/* */
|
||||
/* */
|
||||
/* */
|
||||
/* (C) 2000-2010, Ullrich von Bassewitz */
|
||||
/* (C) 2000-2011, Ullrich von Bassewitz */
|
||||
/* Roemerstrasse 52 */
|
||||
/* D-70794 Filderstadt */
|
||||
/* EMail: uz@cc65.org */
|
||||
@ -140,7 +140,7 @@ void CollInsert (Collection* C, void* Item, unsigned Index)
|
||||
/* Grow the array if necessary */
|
||||
if (C->Count >= C->Size) {
|
||||
/* Must grow */
|
||||
CollGrow (C, (C->Size == 0)? 8 : C->Size * 2);
|
||||
CollGrow (C, (C->Size == 0)? 4 : C->Size * 2);
|
||||
}
|
||||
|
||||
/* Move the existing elements if needed */
|
||||
|
Loading…
Reference in New Issue
Block a user