提交 5bc81c30 编写于 作者: T tianhe1986

compare fix.

Signed-off-by: Ntianhe1986 <w1s2j3229@163.com>
上级 cd2359de
......@@ -326,7 +326,7 @@ class RedBlackTree
$u = $this->bstReplace($v);
// True when u and v are both black
$uvBlack = (($u == null || $u->color == Color::BLACK) && $v->color = Color::BLACK);
$uvBlack = (($u == null || $u->color == Color::BLACK) && $v->color == Color::BLACK);
$parent = $v->parent;
if ($u == null) { // u is NULL therefore v is leaf
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册