diff src/view_file_icon.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 8268cbe682f1
children 81f9e8dbb4bf
line wrap: on
line diff
--- a/src/view_file_icon.c	Thu May 22 11:28:35 2008 +0000
+++ b/src/view_file_icon.c	Thu May 22 13:00:45 2008 +0000
@@ -247,7 +247,7 @@
 
 		row = g_list_index(vf->list, id);
 		if (row > vficon_index_by_fd(vf, 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);
 			}
@@ -809,7 +809,7 @@
 	return (id->selected & SELECTION_SELECTED);
 }
 
-gint vficon_selection_count(ViewFile *vf, gint64 *bytes)
+guint vficon_selection_count(ViewFile *vf, gint64 *bytes)
 {
 	if (bytes)
 		{
@@ -1970,7 +1970,7 @@
 	return -1;
 }
 
-gint vficon_count(ViewFile *vf, gint64 *bytes)
+guint vficon_count(ViewFile *vf, gint64 *bytes)
 {
 	if (bytes)
 		{