mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
ok, some bugs fixed.
This commit is contained in:
@@ -226,7 +226,7 @@ next:
|
|||||||
node->parent->r=node->r;
|
node->parent->r=node->r;
|
||||||
node->r->parent=node->parent;
|
node->r->parent=node->parent;
|
||||||
} else if(node->parent->l==node) {
|
} else if(node->parent->l==node) {
|
||||||
node->parent->l=node->l;
|
node->parent->l=node->r;
|
||||||
node->r->parent=node->parent;
|
node->r->parent=node->parent;
|
||||||
} else {
|
} else {
|
||||||
sx_report(SX_ERROR,"Unlinking node which is not descendant "
|
sx_report(SX_ERROR,"Unlinking node which is not descendant "
|
||||||
@@ -369,6 +369,7 @@ next:
|
|||||||
rn->l=ret;
|
rn->l=ret;
|
||||||
rn->r=chead;
|
rn->r=chead;
|
||||||
};
|
};
|
||||||
|
rn->parent=chead->parent;
|
||||||
chead->parent=rn;
|
chead->parent=rn;
|
||||||
ret->parent=rn;
|
ret->parent=rn;
|
||||||
rn->isGlue=1;
|
rn->isGlue=1;
|
||||||
|
|||||||
Reference in New Issue
Block a user