mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-29 15:26:18 +01:00
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:
parent
f889275a28
commit
c8e9eaf9a3
@ -2494,7 +2494,7 @@ g_int64_equal (gconstpointer v1,
|
|||||||
guint
|
guint
|
||||||
g_int64_hash (gconstpointer v)
|
g_int64_hash (gconstpointer v)
|
||||||
{
|
{
|
||||||
return (guint) ((const guint) (*(guint64 *) v >> 32)) ^ (*(const guint *) v);
|
return (guint) *(const gint64*) v;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user