From 0951e71df4711fababe33a815a64b27e313a1deb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 22 Sep 2005 01:16:28 +0000 Subject: [PATCH] tavl_delete: copy balance factor --- libraries/liblutil/tavl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/liblutil/tavl.c b/libraries/liblutil/tavl.c index 988b7b750b..d2a4ccf428 100644 --- a/libraries/liblutil/tavl.c +++ b/libraries/liblutil/tavl.c @@ -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 ) { -- 2.39.5