-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 gl_oset_search_atleast is documented as returning the found element. GL_ARRAY_OSET did this, but GL_AVLTREE_OSET and GL_RBTREE_OSET instead were mistakenly returning the node containing the element. OK to apply?
2006-11-12 Eric Blake <[EMAIL PROTECTED]> * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the element, not its node. - -- Life is short - so eat dessert first! Eric Blake [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFV5T+84KuGfSFAYARAtj5AKDImMM8y88v36JPAlJvt8Ojq2sbmACbBuC4 ROIsWcBT4U8k/DrwnyyH1W4= =WVt9 -----END PGP SIGNATURE-----
Index: lib/gl_anytree_oset.h =================================================================== RCS file: /sources/gnulib/gnulib/lib/gl_anytree_oset.h,v retrieving revision 1.4 diff -u -p -r1.4 gl_anytree_oset.h --- lib/gl_anytree_oset.h 7 Nov 2006 14:24:05 -0000 1.4 +++ lib/gl_anytree_oset.h 12 Nov 2006 21:39:25 -0000 @@ -100,7 +100,7 @@ gl_tree_search_atleast (gl_oset_t set, node = node->left; } } - *eltp = found; + *eltp = found->value; return true; } }