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