[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
oset bug
From: |
Eric Blake |
Subject: |
oset bug |
Date: |
Sun, 12 Nov 2006 14:41:18 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.666 |
-----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 <address@hidden>
* lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
element, not its node.
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----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;
}
}