We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f2a76f commit 454bc3dCopy full SHA for 454bc3d
common/list.c
@@ -13,7 +13,7 @@ list_t *create_list(void) {
13
14
static void list_resize(list_t *list) {
15
if (list->length == list->capacity) {
16
- list->capacity += 10;
+ list->capacity = list->capacity * 2 + 8;
17
list->items = realloc(list->items, sizeof(void*) * list->capacity);
18
}
19
0 commit comments