diff options
Diffstat (limited to 'src/arraylist.c')
| -rw-r--r-- | src/arraylist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arraylist.c b/src/arraylist.c index f010d07..0db35ad 100644 --- a/src/arraylist.c +++ b/src/arraylist.c | |||
| @@ -82,7 +82,7 @@ ArrayList_growIfNeeded(struct ArrayList *arrayList) | |||
| 82 | arrayList->array = ArrayList_allocateArray(NULL, DEFAULT_CAPACITY); | 82 | arrayList->array = ArrayList_allocateArray(NULL, DEFAULT_CAPACITY); |
| 83 | } | 83 | } |
| 84 | else { | 84 | else { |
| 85 | size_t new_capacity = (arrayList->capacity * 3) / 2; // *= 1.5 | 85 | size_t new_capacity = arrayList->capacity * 3 / 2; // *= 1.5 |
| 86 | T ** new_arrayList = ArrayList_allocateArray(arrayList->array, new_capacity); | 86 | T ** new_arrayList = ArrayList_allocateArray(arrayList->array, new_capacity); |
| 87 | 87 | ||
| 88 | arrayList->capacity = new_capacity; | 88 | arrayList->capacity = new_capacity; |
