* resrc.c (define_icon): Fix storage of color attributes 'planes' and 'bit
[deliverable/binutils-gdb.git] / libiberty / splay-tree.c
index 3227ed3d3a603d0bfb76fa9ef8b70aa9eb5c4bd0..fc98db167f329eaf4083b6c5dd480b1fa75b2959 100644 (file)
@@ -234,7 +234,7 @@ splay_tree_xmalloc_allocate (size, data)
      int size;
      void *data ATTRIBUTE_UNUSED;
 {
-  return xmalloc (size);
+  return (void *) xmalloc (size);
 }
 
 static void
@@ -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)
This page took 0.023452 seconds and 4 git commands to generate.