提交 41f104a8 编写于 作者: H Hongze Cheng

more code

上级 04cc96d6
...@@ -253,8 +253,16 @@ SRBTreeNode *tRBTreeIterNext(SRBTreeIter *pIter) { ...@@ -253,8 +253,16 @@ SRBTreeNode *tRBTreeIterNext(SRBTreeIter *pIter) {
SRBTree *pTree = pIter->pTree; SRBTree *pTree = pIter->pTree;
if (pIter->pNode) { if (pIter->pNode) {
ASSERT(0); if (pIter->pNode->right) {
// TODO pIter->pNode = pIter->pNode->right;
while (pIter->pNode->left) {
pIter->pNode->left;
}
} else {
while (true) {
ASSERT(0);
}
}
} }
_exit: _exit:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册