From 4c8343f1eecc021d559ea9b39d1cda3c7d707084 Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 22 Mar 2016 01:40:01 -0400 Subject: [PATCH] Tabs and more style. --- common/list.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/list.c b/common/list.c index 0e7c9e91..49e04952 100644 --- a/common/list.c +++ b/common/list.c @@ -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; }