GHashTable: be more clear what g_int_hash wants
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 4 Oct 2011 08:42:28 +0000 (09:42 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 4 Oct 2011 08:42:28 +0000 (09:42 +0100)
commit06c96ab1e59dead8a920433498624b946abdb9ab
treeed3ad941b8deca1a9b6b24d1a58b4a1ca9f5e7e1
parent5bed8317ea0dc615b02f34bde9b5dfa7374c5600
GHashTable: be more clear what g_int_hash wants

Using g_int_hash, g_int_equal with keys like GINT_TO_POINTER (n) seems to
be a reasonably common GLib-novice mistake. It doesn't help that the
documentation for GHashFunc was ambiguous about this.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=592715
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: Colin Walters <walters@verbum.org>
glib/ghash.c