Replace SET+CLEAR by MOVE.

This commit is contained in:
Patrick Pelissier committed 2018-11-04 20:28:56 +01:00
1 parent c0610b2d60
commit ee0c77edc8
1 file changed
+3 -2
+3 -2
View File
@@ -835,8 +835,9 @@ typedef enum {
assert (tree->node == NULL || RBTREEI_IS_BLACK(tree->node)); \
/* delete it */ \
if (data_ptr != NULL) \
M_CALL_SET(oplist, *data_ptr, n->data); \
M_CALL_CLEAR(oplist, n->data); \
M_DO_MOVE(oplist, *data_ptr, n->data); \
else \
M_CALL_CLEAR(oplist, n->data); \
M_C(name,_int_del) (n); \
tree->size --; \
RBTREEI_CONTRACT (tree); \