Mercurial > geeqie.yaz
comparison src/ui_bookmark.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 | eda074e91ddd |
children | 518c05cf63ba |
comparison
equal
deleted
inserted
replaced
735:df6c11709106 | 736:a7289f9e8d29 |
---|---|
266 hd->list = g_list_prepend(hd->list, g_strdup(path)); | 266 hd->list = g_list_prepend(hd->list, g_strdup(path)); |
267 | 267 |
268 if (max == -1) max = HISTORY_DEFAULT_KEY_COUNT; | 268 if (max == -1) max = HISTORY_DEFAULT_KEY_COUNT; |
269 if (max > 0) | 269 if (max > 0) |
270 { | 270 { |
271 while (hd->list && g_list_length(hd->list) > max) | 271 while (hd->list && g_list_length(hd->list) > (guint) max) |
272 { | 272 { |
273 GList *work = g_list_last(hd->list); | 273 GList *work = g_list_last(hd->list); |
274 gchar *buf = work->data; | 274 gchar *buf = work->data; |
275 hd->list = g_list_remove(hd->list, buf); | 275 hd->list = g_list_remove(hd->list, buf); |
276 g_free(buf); | 276 g_free(buf); |