Tabs and more style.

This commit is contained in:
Ethan 2016-03-22 01:40:01 -04:00
parent 34cc909efb
commit 4c8343f1ee

View file

@ -50,8 +50,12 @@ void list_insert(list_t *list, int index, void *item) {
// Added because IDK if it's safe to remove that memmove
void list_arbitrary_insert(list_t *list, int index, void *item) {
list_resize(list);
if(index > list->capacity) return;
if(list->length < index) list->length = index;
if(index > list->capacity) {
return;
}
if(list->length < index) {
list->length = index;
}
list->items[index] = item;
}