Merge pull request #1 from TheAlgorithms/master

fix: LGTM warnings in...
This commit is contained in:
Ashish Bhanu Daulatabad
2021-03-10 21:48:34 +05:30
committed by GitHub

View File

@@ -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;