Skip to content
Snippets Groups Projects
Commit 0951e71d authored by Howard Chu's avatar Howard Chu
Browse files

tavl_delete: copy balance factor

parent 495f7e56
No related branches found
No related tags found
No related merge requests found
......@@ -239,6 +239,8 @@ tavl_delete( Avlnode **root, void* data, AVL_CMP fcmp )
p->avl_bits[1] = q->avl_bits[1];
q->avl_bits[0] = q->avl_bits[1] = AVL_CHILD;
q->avl_bf = p->avl_bf;
/* fix stack positions: old parent of p points to q */
pptr[side] = q;
if ( side ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment