fix: LGTM warnings in...

...`data_structures/rb_tree.cpp`.
This commit is contained in:
David Leal 2021-03-07 21:19:21 -06:00 committed by GitHub
parent f71fbc54d7
commit d970011d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,7 +244,7 @@ void RBtree::delfix(node *p)
{ {
if (s->right->color == 'b') if (s->right->color == 'b')
{ {
s->left->color == 'b'; s->left->color = 'b';
s->color = 'r'; s->color = 'r';
rightrotate(s); rightrotate(s);
s = p->parent->right; s = p->parent->right;