[PATCH grilo-plugins] flickr: silence the compiler



unsigned int can't be less than zero
---
 src/flickr/grl-flickr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/flickr/grl-flickr.c b/src/flickr/grl-flickr.c
index 2e4bc4a..b4341c2 100644
--- a/src/flickr/grl-flickr.c
+++ b/src/flickr/grl-flickr.c
@@ -602,7 +602,7 @@ grl_flickr_source_public_browse (GrlMediaSource *source,
     if (bs->skip >= HOTLIST_MAX) {
       bs->callback (bs->source, bs->browse_id, NULL, 0, bs->user_data, NULL);
     } else {
-      request_size = CLAMP (bs->skip + bs->count, 0, HOTLIST_MAX);
+      request_size = CLAMP (bs->skip + bs->count, 1, HOTLIST_MAX);
       g_flickr_tags_getHotList (f, request_size, gettags_cb, bs);
     }
   } else {
-- 
1.7.1



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]