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:
Simon McVittie
2022-10-21 10:23:37 +01:00
parent c8e9eaf9a3
commit 53178b084c

View File

@@ -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;
}