Revert "Optional optimization for g_int64_hash"

This reverts commit c1af4b2b88,
which caused a regression on big-endian architectures (all 64-bit
integers 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:18 +01:00
parent f889275a28
commit c8e9eaf9a3

View File

@ -2494,7 +2494,7 @@ g_int64_equal (gconstpointer v1,
guint
g_int64_hash (gconstpointer v)
{
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
return (guint) *(const gint64*) v;
}
/**