summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2018-01-07 14:59:28 +0100
committerDebarshi Ray <debarshir@gnome.org>2018-01-23 15:38:36 +0100
commitbff42f2150601c04a0e935761a0f8f026abc62a4 (patch)
treef0d7f970f6b21690aeb171a9aed256f17e5291bb /src
parent259c60910ebfd9254c8ad9847a36b87329bdacc8 (diff)
downloadtracker-bff42f2150601c04a0e935761a0f8f026abc62a4.tar.gz
libtracker-sparql: Be more careful about integer sizes
The GVariant type string "i" refers to a signed 32-bit integer. Therefore, gint32 is a much safer bet than gint, whose size is not guaranteed across all platforms. https://bugzilla.gnome.org/show_bug.cgi?id=792301
Diffstat (limited to 'src')
-rw-r--r--src/libtracker-sparql/tracker-notifier.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libtracker-sparql/tracker-notifier.c b/src/libtracker-sparql/tracker-notifier.c
index a9a10a596..72b29da65 100644
--- a/src/libtracker-sparql/tracker-notifier.c
+++ b/src/libtracker-sparql/tracker-notifier.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2016 Red Hat Inc.
+ * Copyright (C) 2016-2018 Red Hat Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -295,7 +295,7 @@ handle_deletes (TrackerNotifier *notifier,
TrackerNotifierEventCache *cache,
GVariantIter *iter)
{
- gint graph, subject, predicate, object;
+ gint32 graph, subject, predicate, object;
TrackerNotifierPrivate *priv;
priv = tracker_notifier_get_instance_private (notifier);
@@ -333,7 +333,7 @@ handle_updates (TrackerNotifier *notifier,
TrackerNotifierEventCache *cache,
GVariantIter *iter)
{
- gint graph, subject, predicate, object;
+ gint32 graph, subject, predicate, object;
TrackerNotifierPrivate *priv;
priv = tracker_notifier_get_instance_private (notifier);