mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-28 03:48:53 +02:00
Revert "Optimize g_double_hash implementation"
This reverts commit dd1f4f709e
.
which caused a regression on big-endian architectures (all doubles would
hash to zero).
Partially resolves #2787
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -2535,5 +2535,5 @@ g_double_equal (gconstpointer v1,
|
||||
guint
|
||||
g_double_hash (gconstpointer v)
|
||||
{
|
||||
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
|
||||
return (guint) *(const gdouble*) v;
|
||||
}
|
||||
|
Reference in New Issue
Block a user