Ver a proveniência

Update return statements

Use blank returns for subroutines.
master
ascendente
cometimento
eb1e1593c3
1 ficheiros alterados com 3 adições e 2 eliminações
  1. +3
    -2
      src/packages/game/data/IZ_list.c

+ 3
- 2
src/packages/game/data/IZ_list.c Ver ficheiro

@@ -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));


Carregando…
Cancelar
Guardar