comparison src/slideshow.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 905688aa2317
children eb7e0d3206a2
comparison
equal deleted inserted replaced
735:df6c11709106 736:a7289f9e8d29
53 { 53 {
54 list = layout_selection_list_by_index(ss->layout); 54 list = layout_selection_list_by_index(ss->layout);
55 } 55 }
56 else 56 else
57 { 57 {
58 gint i; 58 guint i;
59 for (i = 0; i < ss->slide_count; i++) 59 for (i = 0; i < ss->slide_count; i++)
60 { 60 {
61 list = g_list_prepend(list, GINT_TO_POINTER(i)); 61 list = g_list_prepend(list, GINT_TO_POINTER(i));
62 } 62 }
63 list = g_list_reverse(list); 63 list = g_list_reverse(list);
363 ss->slide_count = layout_selection_count(ss->layout, NULL); 363 ss->slide_count = layout_selection_count(ss->layout, NULL);
364 ss->layout_path = g_strdup(layout_get_path(ss->layout)); 364 ss->layout_path = g_strdup(layout_get_path(ss->layout));
365 if (ss->slide_count < 2) 365 if (ss->slide_count < 2)
366 { 366 {
367 ss->slide_count = layout_list_count(ss->layout, NULL); 367 ss->slide_count = layout_list_count(ss->layout, NULL);
368 if (!options->slideshow.random && start_point >= 0 && start_point < ss->slide_count) 368 if (!options->slideshow.random && start_point >= 0 && (guint) start_point < ss->slide_count)
369 { 369 {
370 start_index = start_point; 370 start_index = start_point;
371 } 371 }
372 } 372 }
373 else 373 else