mirror of
https://gitee.com/apaki/unicstl.git
synced 2025-07-03 23:56:54 +08:00
为什么还不行?
This commit is contained in:
parent
6cd3356bdb
commit
b0de90becf
@ -1338,6 +1338,7 @@ bool tree_rb_delete(struct _tree* self, void* obj)
|
|||||||
memmove(node->obj, tmp->obj, self->_obj_size);
|
memmove(node->obj, tmp->obj, self->_obj_size);
|
||||||
if(tmp->right != NULL)
|
if(tmp->right != NULL)
|
||||||
{
|
{
|
||||||
|
// tmp->right must be red
|
||||||
memmove(tmp->obj, tmp->right->obj, self->_obj_size);
|
memmove(tmp->obj, tmp->right->obj, self->_obj_size);
|
||||||
tmp = tmp->right;
|
tmp = tmp->right;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user