* lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
authorEric Blake <ebb9@byu.net>
Mon, 13 Nov 2006 14:30:13 +0000 (14:30 +0000)
committerEric Blake <ebb9@byu.net>
Mon, 13 Nov 2006 14:30:13 +0000 (14:30 +0000)
element, not its node.

ChangeLog
lib/gl_anytree_oset.h

index 5609cfc..a972c63 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-11-13  Eric Blake  <ebb9@byu.net>
+
+       * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
+       element, not its node.
+
 2006-11-12  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
index 9945cfc..b6b50b4 100644 (file)
@@ -100,7 +100,7 @@ gl_tree_search_atleast (gl_oset_t set,
                  node = node->left;
                }
            }
-         *eltp = found;
+         *eltp = found->value;
          return true;
        }
     }