Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
735:df6c11709106 | 736:a7289f9e8d29 |
---|---|
245 { | 245 { |
246 gint row; | 246 gint row; |
247 | 247 |
248 row = g_list_index(vf->list, id); | 248 row = g_list_index(vf->list, id); |
249 if (row > vficon_index_by_fd(vf, cur_fd) && | 249 if (row > vficon_index_by_fd(vf, cur_fd) && |
250 row + 1 < vf_count(vf, NULL)) | 250 (guint) (row + 1) < vf_count(vf, NULL)) |
251 { | 251 { |
252 read_ahead_fd = vf_index_get_data(vf, row + 1); | 252 read_ahead_fd = vf_index_get_data(vf, row + 1); |
253 } | 253 } |
254 else if (row > 0) | 254 else if (row > 0) |
255 { | 255 { |
807 if (!id) return FALSE; | 807 if (!id) return FALSE; |
808 | 808 |
809 return (id->selected & SELECTION_SELECTED); | 809 return (id->selected & SELECTION_SELECTED); |
810 } | 810 } |
811 | 811 |
812 gint vficon_selection_count(ViewFile *vf, gint64 *bytes) | 812 guint vficon_selection_count(ViewFile *vf, gint64 *bytes) |
813 { | 813 { |
814 if (bytes) | 814 if (bytes) |
815 { | 815 { |
816 gint64 b = 0; | 816 gint64 b = 0; |
817 GList *work; | 817 GList *work; |
1968 } | 1968 } |
1969 | 1969 |
1970 return -1; | 1970 return -1; |
1971 } | 1971 } |
1972 | 1972 |
1973 gint vficon_count(ViewFile *vf, gint64 *bytes) | 1973 guint vficon_count(ViewFile *vf, gint64 *bytes) |
1974 { | 1974 { |
1975 if (bytes) | 1975 if (bytes) |
1976 { | 1976 { |
1977 gint64 b = 0; | 1977 gint64 b = 0; |
1978 GList *work; | 1978 GList *work; |