diff --git a/data_structures/rb_tree.cpp b/data_structures/rb_tree.cpp index a8ad3e9fb..f2a51a30c 100644 --- a/data_structures/rb_tree.cpp +++ b/data_structures/rb_tree.cpp @@ -244,7 +244,7 @@ void RBtree::delfix(node *p) { if (s->right->color == 'b') { - s->left->color == 'b'; + s->left->color = 'b'; s->color = 'r'; rightrotate(s); s = p->parent->right;