summaryrefslogtreecommitdiffstats
path: root/binding/network-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/network-util.c')
-rw-r--r--binding/network-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binding/network-util.c b/binding/network-util.c
index 0dab808..3bb1b99 100644
--- a/binding/network-util.c
+++ b/binding/network-util.c
@@ -157,7 +157,7 @@ json_object *simple_gvariant_to_json(GVariant *var, json_object *parent,
break;
case G_VARIANT_CLASS_INT64:
i64 = g_variant_get_int64(var);
- if (i64 >= -(1L << 31) && i64 < (1L << 31))
+ if (i64 >= -(1LL << 31) && i64 < (1LL << 31))
obj = json_object_new_int((int)i64);
else
obj = json_object_new_int64(i64);