[nautilus/sam/tracker-3] Fix build on 32 bits
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/sam/tracker-3] Fix build on 32 bits
- Date: Fri, 31 Jul 2020 13:48:10 +0000 (UTC)
commit 100c5f43dd7e6af93fe9f47668450d71c68a5353
Author: Sam Thursfield <sam afuera me uk>
Date: Fri Jul 31 15:47:54 2020 +0200
Fix build on 32 bits
src/nautilus-tag-manager.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-tag-manager.c b/src/nautilus-tag-manager.c
index 82d6a930c..d2385dc8c 100644
--- a/src/nautilus-tag-manager.c
+++ b/src/nautilus-tag-manager.c
@@ -214,7 +214,7 @@ on_update_callback (GObject *object,
{
new_id = g_new0 (gint64, 1);
- *new_id = (gint64) g_hash_table_lookup (data->ids, uri);
+ *new_id = GPOINTER_TO_INT (g_hash_table_lookup (data->ids, uri));
g_hash_table_insert (data->tag_manager->starred_file_uris,
nautilus_file_get_uri (NAUTILUS_FILE (l->data)),
new_id);
@@ -734,7 +734,7 @@ on_tracker_notifier_events (TrackerNotifier *notifier,
file_url = g_hash_table_lookup (self->starred_file_ids, &id);
changed_file = NULL;
- DEBUG ("Got event for tracker resource id %li", id);
+ DEBUG ("Got event for tracker resource id %" G_GINT64_FORMAT, id);
tracker_sparql_statement_bind_int (self->query_updated_file_url, "id", tracker_notifier_event_get_id
(event));
cursor = tracker_sparql_statement_execute (self->query_updated_file_url,
@@ -759,7 +759,7 @@ on_tracker_notifier_events (TrackerNotifier *notifier,
{
/* The file was deleted from the filesystem or is no longer indexed by Tracker. */
file_url = g_hash_table_lookup (self->starred_file_ids, &id);
- DEBUG ("Removing %s from starred files list, as id %li no longer present in Tracker index.
", file_url, id);
+ DEBUG ("Removing %s from starred files list, as id %" G_GINT64_FORMAT " no longer present in
Tracker index. ", file_url, id);
changed_file = nautilus_file_get_by_uri (file_url);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]