Selaa lähdekoodia

Update return statements

Use blank returns for subroutines.
master
TheoryOfNekomata 2 vuotta sitten
vanhempi
commit
eb1e1593c3
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. +3
    -2
      src/packages/game/data/IZ_list.c

+ 3
- 2
src/packages/game/data/IZ_list.c Näytä tiedosto

@@ -93,7 +93,7 @@ void IZ_ListTeardown(IZ_List* list) {
* @return Pointer to the newly created node. * @return Pointer to the newly created node.
*/ */
void IZ_ListAppendNode(IZ_List* list, void* node_value, IZ_ListNode** new_node) { void IZ_ListAppendNode(IZ_List* list, void* node_value, IZ_ListNode** new_node) {
return IZ_ListDoAppendNode(list, node_value, new_node); IZ_ListDoAppendNode(list, node_value, new_node);
} }


/** /**
@@ -173,7 +173,8 @@ void IZ_ListInsertNodeAtIndex(IZ_List* list, void* node_value, u64 dest_index, I
} }


if (dest_index == list->length) { if (dest_index == list->length) {
return IZ_ListDoAppendNode(list, node_value, new_node_ref); IZ_ListDoAppendNode(list, node_value, new_node_ref);
return;
} }


IZ_ListNode* new_node = IZ_malloc(sizeof(IZ_ListNode)); IZ_ListNode* new_node = IZ_malloc(sizeof(IZ_ListNode));


||||||
x
 
000:0
Ladataan…
Peruuta
Tallenna