Sfoglia il codice sorgente

Update return statements

Use blank returns for subroutines.
master
parent
commit
eb1e1593c3
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. +3
    -2
      src/packages/game/data/IZ_list.c

+ 3
- 2
src/packages/game/data/IZ_list.c Vedi File

@@ -93,7 +93,7 @@ void IZ_ListTeardown(IZ_List* list) {
* @return Pointer to the newly created 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) {
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));


Caricamento…
Annulla
Salva