mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-06 11:00:57 +01:00
Revert "Optional optimization for g_int64_hash
"
This reverts commit c1af4b2b886bd77d6d8857cf3f677edbc0d34a61, 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…
x
Reference in New Issue
Block a user