diff options
author | rbuj <[email protected]> | 2021-12-19 23:34:14 +0100 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-02-09 04:03:59 +0000 |
commit | b6d46039be75bd2b868ee6c32b091a1e37720a20 (patch) | |
tree | fe11a75d22da7ca239204f000c33b2338cc07419 /src/caja-query-editor.c | |
parent | 97b61e663e47e6bd6ee6ff460895a7370b3c6159 (diff) | |
download | caja-b6d46039be75bd2b868ee6c32b091a1e37720a20.tar.bz2 caja-b6d46039be75bd2b868ee6c32b091a1e37720a20.tar.xz |
Fix some -Wsign-compare warnings
Diffstat (limited to 'src/caja-query-editor.c')
-rw-r--r-- | src/caja-query-editor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/caja-query-editor.c b/src/caja-query-editor.c index 2c600c5d..b4f96179 100644 --- a/src/caja-query-editor.c +++ b/src/caja-query-editor.c @@ -468,7 +468,7 @@ tags_row_add_to_query (CajaQueryEditorRow *row, char **strv = g_strsplit (tags, " ", -1); guint len = g_strv_length (strv); - int i; + guint i; for (i = 0; i < len; ++i) { strv[i] = g_strstrip (strv[i]); @@ -839,7 +839,7 @@ type_row_create_widgets (CajaQueryEditorRow *row) GtkCellRenderer *cell; GtkListStore *store; GtkTreeIter iter; - int i; + gsize i; store = gtk_list_store_new (4, G_TYPE_STRING, G_TYPE_POINTER, G_TYPE_STRING, G_TYPE_BOOLEAN); combo = gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)); @@ -993,7 +993,7 @@ type_add_rows_from_query (CajaQueryEditor *editor, char *mime_type; CajaQueryEditorRow *row; GtkTreeIter iter; - int i; + gsize i; GtkTreeModel *model; GList *l; @@ -1017,7 +1017,7 @@ type_add_rows_from_query (CajaQueryEditor *editor, model = gtk_combo_box_get_model (GTK_COMBO_BOX (row->type_widget)); - gtk_tree_model_iter_nth_child (model, &iter, NULL, i + 2); + gtk_tree_model_iter_nth_child (model, &iter, NULL, ((gint) i) + 2); gtk_combo_box_set_active_iter (GTK_COMBO_BOX (row->type_widget), &iter); } |