Fixed array backend list
This commit is contained in:
parent
278fc56984
commit
0516d85094
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ static void increase_buffer(IntList list, unsigned int additional_capacity) {
|
||||||
new_buffer[i] = list->buffer[i];
|
new_buffer[i] = list->buffer[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free_mem(list->buffer);
|
||||||
list->buffer = new_buffer;
|
list->buffer = new_buffer;
|
||||||
list->capacity += additional_capacity;
|
list->capacity += additional_capacity;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue