mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 16:06:16 +01:00
Use actual uint64 values to compare uint64 variants
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=656772
This commit is contained in:
parent
d4c5e3b156
commit
654b349c30
@ -2618,8 +2618,8 @@ g_variant_compare (gconstpointer one,
|
||||
|
||||
case G_VARIANT_CLASS_UINT64:
|
||||
{
|
||||
guint64 a_val = g_variant_get_int32 (a);
|
||||
guint64 b_val = g_variant_get_int32 (b);
|
||||
guint64 a_val = g_variant_get_uint64 (a);
|
||||
guint64 b_val = g_variant_get_uint64 (b);
|
||||
|
||||
return (a_val == b_val) ? 0 : (a_val > b_val) ? 1 : -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user