aboutsummaryrefslogtreecommitdiff
path: root/libiberty/splay-tree.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-05-07 19:15:59 +0000
committerDJ Delorie <dj@redhat.com>2003-05-07 19:15:59 +0000
commit0f3538e70eb350657bc4431329ad6a51ce9503da (patch)
tree6dc40612e8cf38e5e6291542f723c8ee119997d0 /libiberty/splay-tree.c
parente4846b08991e4620706212fda12f422601f5e63a (diff)
downloadgdb-0f3538e70eb350657bc4431329ad6a51ce9503da.zip
gdb-0f3538e70eb350657bc4431329ad6a51ce9503da.tar.gz
gdb-0f3538e70eb350657bc4431329ad6a51ce9503da.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/splay-tree.c')
-rw-r--r--libiberty/splay-tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/splay-tree.c b/libiberty/splay-tree.c
index 6f90fde..fc98db1 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)