[glib] Use actual uint64 values to compare uint64 variants
- From: Christian Dywan <cdywan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Use actual uint64 values to compare uint64 variants
- Date: Wed, 17 Aug 2011 23:42:20 +0000 (UTC)
commit 654b349c30432ac03d48e6e9a8aae7fb543a78bb
Author: Christian Dywan <christian twotoasts de>
Date: Thu Aug 18 01:38:34 2011 +0200
Use actual uint64 values to compare uint64 variants
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=656772
glib/gvariant.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 22faf08..fb87f43 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]