[tracker] tracker-needle: Fix C warnings on 64-bit platforms



commit df9a24d59970c3e6cdf7bdc56c512b5c1204d7c7
Author: Jürg Billeter <j bitron ch>
Date:   Fri Mar 25 12:30:39 2011 +0100

    tracker-needle: Fix C warnings on 64-bit platforms

 src/tracker-needle/tracker-result-store.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-needle/tracker-result-store.vala b/src/tracker-needle/tracker-result-store.vala
index e92d729..87d0482 100644
--- a/src/tracker-needle/tracker-result-store.vala
+++ b/src/tracker-needle/tracker-result-store.vala
@@ -446,7 +446,7 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 		}
 
 		if (iter.user_data2 != null) {
-			path.append_index ((int) iter.user_data3);
+			path.append_index ((int) (long) iter.user_data3);
 		}
 
 		return path;
@@ -569,7 +569,7 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 			int n_node;
 
 			result = iter.user_data2;
-			n_node = (int) iter.user_data3;
+			n_node = (int) (long) iter.user_data3;
 
 			if (result.values[0] != null) {
 				if (column == n_columns ) {
@@ -687,7 +687,7 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
 			return true;
 		} else {
 			// Result node
-			i = (int) iter.user_data3;
+			i = (int) (long) iter.user_data3;
 			i++;
 
 			if (i >= cat.count) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]