Mercurial > geeqie.yaz
diff src/view_file_list.c @ 736:a7289f9e8d29
Fix signed vs unsigned warnings.
In most cases, gint was used instead of guint.
author | zas_ |
---|---|
date | Thu, 22 May 2008 13:00:45 +0000 |
parents | a1dcef8cd1ae |
children | 477f48ba28d8 |
line wrap: on
line diff
--- a/src/view_file_list.c Thu May 22 11:28:35 2008 +0000 +++ b/src/view_file_list.c Thu May 22 13:00:45 2008 +0000 @@ -232,7 +232,7 @@ if (VFLIST_INFO(vf, thumbs_enabled) && VFLIST_INFO(vf, click_fd) && VFLIST_INFO(vf, click_fd)->pixbuf) { - gint items; + guint items; if (vflist_row_is_selected(vf, VFLIST_INFO(vf, click_fd))) items = vf_selection_count(vf, NULL); @@ -629,7 +629,7 @@ if (sel_fd && options->image.enable_read_ahead && row >= 0) { if (row > g_list_index(vf->list, cur_fd) && - row + 1 < vf_count(vf, NULL)) + (guint) (row + 1) < vf_count(vf, NULL)) { read_ahead_fd = vf_index_get_data(vf, row + 1); } @@ -1064,7 +1064,7 @@ return -1; } -gint vflist_count(ViewFile *vf, gint64 *bytes) +guint vflist_count(ViewFile *vf, gint64 *bytes) { if (bytes) { @@ -1144,12 +1144,12 @@ return vflist_row_is_selected(vf, fd); } -gint vflist_selection_count(ViewFile *vf, gint64 *bytes) +guint vflist_selection_count(ViewFile *vf, gint64 *bytes) { GtkTreeModel *store; GtkTreeSelection *selection; GList *slist; - gint count; + guint count; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(vf->listview)); slist = gtk_tree_selection_get_selected_rows(selection, &store);