[tracker: 10/14] tracker-sparql-types: Fix int vs guint comparisons
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker: 10/14] tracker-sparql-types: Fix int vs guint comparisons
- Date: Sat, 8 May 2021 17:25:48 +0000 (UTC)
commit 6192b87e279d991197affd60c44516d5b48ec209
Author: Daniele Nicolodi <daniele grinta net>
Date: Sun May 2 14:44:12 2021 +0200
tracker-sparql-types: Fix int vs guint comparisons
Change TrackerSolution::solution_index and TrackerSolution::n_cols
types from int to guint for consistency with the types they are most
often compared to. Also number of elements are more naturally
represented with unisgned types.
src/libtracker-data/tracker-sparql-types.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-sparql-types.h b/src/libtracker-data/tracker-sparql-types.h
index 8dc551234..8f4e142ed 100644
--- a/src/libtracker-data/tracker-sparql-types.h
+++ b/src/libtracker-data/tracker-sparql-types.h
@@ -145,8 +145,8 @@ struct _TrackerToken {
struct _TrackerSolution {
GPtrArray *columns;
GPtrArray *values;
- int solution_index;
- int n_cols;
+ guint solution_index;
+ guint n_cols;
};
typedef enum {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]