From e6cb3eaa5b39b9e9e13f34287d93d7f9869e4a8c Mon Sep 17 00:00:00 2001 From: Josef Zlomek Date: Wed, 7 May 2003 18:19:36 +0000 Subject: * splay-tree.c (splay_tree_predecessor): Fix comment. (splay_tree_successor): Fix comment. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@66569 138bc75d-0d04-0410-961f-82ee72b054a4 --- libiberty/splay-tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiberty/splay-tree.c') diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c index 6f90fde05fb..fc98db167f3 100644 --- a/libiberty/splay-tree.c +++ b/libiberty/splay-tree.c @@ -472,7 +472,7 @@ splay_tree_predecessor (sp, key) if (comparison < 0) return sp->root; - /* Otherwise, find the leftmost element of the right subtree. */ + /* Otherwise, find the rightmost element of the left subtree. */ node = sp->root->left; if (node) while (node->right) @@ -505,7 +505,7 @@ splay_tree_successor (sp, key) if (comparison > 0) return sp->root; - /* Otherwise, find the rightmost element of the left subtree. */ + /* Otherwise, find the leftmost element of the right subtree. */ node = sp->root->right; if (node) while (node->left) -- cgit v1.2.3