[grilo-plugins] flickr: silence the compiler
- From: Victor Manuel Jaquez Leal <vjaquez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] flickr: silence the compiler
- Date: Tue, 24 Aug 2010 10:01:06 +0000 (UTC)
commit 4d7b681d03d25b71f5269c4f868c386997b786bb
Author: VÃctor Manuel Jáquez Leal <vjaquez igalia com>
Date: Thu Aug 19 14:27:15 2010 +0200
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]