From d970011d3d0e636ba67abf37cb08b84afdf5829b Mon Sep 17 00:00:00 2001 From: David Leal Date: Sun, 7 Mar 2021 21:19:21 -0600 Subject: [PATCH] fix: LGTM warnings in... ...`data_structures/rb_tree.cpp`. --- data_structures/rb_tree.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;