merge from gcc

This commit is contained in:
DJ Delorie
2003-05-07 19:15:59 +00:00
parent e4846b0899
commit 0f3538e70e
2 changed files with 7 additions and 2 deletions

View File

@@ -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)