f10-binary-tree #27

Merged
Mineplay merged 16 commits from f10-binary-tree into main 2025-09-03 13:20:51 -05:00
Showing only changes of commit c8c2d5623d - Show all commits

View file

@ -114,6 +114,7 @@ FledastyError fledasty_binary_search_tree_##name##_insert(FledastyBinarySearchTr
while (new_node->parent == NULL) { \ while (new_node->parent == NULL) { \
if (compare_key_function(key, current_node->key)) { \ if (compare_key_function(key, current_node->key)) { \
current_node->value = value; \ current_node->value = value; \
hallocy_free(new_node); \
return FLEDASTY_ERROR_VALUE_REPLACED; \ return FLEDASTY_ERROR_VALUE_REPLACED; \
} \ } \
\ \