Skip to content

Commit

Permalink
fix a_rbt_new_child parameter calling order in a_rbt_remove
Browse files Browse the repository at this point in the history
  • Loading branch information
tqfx committed Jun 22, 2024
1 parent 666dc50 commit accbbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ void a_rbt_remove(a_rbt *root, a_rbt_node *node)
color = node->color;
#endif /* A_SIZE_POINTER */
tmp = a_rbt_parent(node);
a_rbt_new_child(root, node, successor, tmp);
a_rbt_new_child(root, tmp, node, successor);

if (child2)
{
Expand Down

0 comments on commit accbbaf

Please sign in to comment.