diff options
Diffstat (limited to 'src/ptrarray.c')
-rw-r--r-- | src/ptrarray.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ptrarray.c b/src/ptrarray.c index 56d28cb..eb17d28 100644 --- a/src/ptrarray.c +++ b/src/ptrarray.c @@ -25,7 +25,7 @@ ptrarray_t *ptr_array_new(int capacity) ptrarray_t *pa = (ptrarray_t*)malloc(sizeof(ptrarray_t)); pa->pdata = (void**)malloc(sizeof(void*) * capacity); pa->capacity = capacity; - pa->capacity_step = (capacity > 64) ? 64 : capacity; + pa->capacity_step = (capacity > 4096) ? 4096 : capacity; pa->len = 0; return pa; } |