Use actual uint64 values to compare uint64 variants

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=656772
This commit is contained in:
Christian Dywan 2011-08-18 01:38:34 +02:00
parent d4c5e3b156
commit 654b349c30

View File

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