From 9a3cbbfa17bed2535ff58690aae78975bc46f6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 9 Feb 2015 12:31:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E7=9A=84=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/Detail/AVLTree.impl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TinySTL/Detail/AVLTree.impl.h b/TinySTL/Detail/AVLTree.impl.h index ddd5d59..01229a5 100644 --- a/TinySTL/Detail/AVLTree.impl.h +++ b/TinySTL/Detail/AVLTree.impl.h @@ -32,8 +32,7 @@ namespace TinySTL{ parent_.push(ptr_); ptr_ = ptr_->left_; } - } - else{//node无右子树则只能向父节点路径移动 + }else{//node无右子树则只能向父节点路径移动 ptr_ = 0;//add 2015.01.14 while (!parent_.empty()){ ptr_ = parent_.top();