[libsoup/cache] soup-cache: limit can't be negative here, so use a proper unsigned to store it
- From: Xan Lopez <xan src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libsoup/cache] soup-cache: limit can't be negative here, so use a proper unsigned to store it
- Date: Thu, 6 Aug 2009 08:02:52 +0000 (UTC)
commit ec567fd1d95fe5ac3f9580f6397ecdfcd4e0305c
Author: Xan Lopez <xan gnome org>
Date: Wed Aug 5 14:20:01 2009 +0300
soup-cache: limit can't be negative here, so use a proper unsigned to store it
libsoup/soup-cache.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-cache.c b/libsoup/soup-cache.c
index 00ffde8..cf93b1a 100644
--- a/libsoup/soup-cache.c
+++ b/libsoup/soup-cache.c
@@ -197,8 +197,8 @@ soup_cache_entry_get_current_age (SoupCacheEntry *entry)
static gboolean
soup_cache_entry_is_fresh_enough (SoupCacheEntry *entry, int min_fresh)
{
- int limit = (min_fresh == -1) ? soup_cache_entry_get_current_age (entry) : min_fresh;
- return ((int)entry->freshness_lifetime) > limit;
+ unsigned limit = (min_fresh == -1) ? soup_cache_entry_get_current_age (entry) : min_fresh;
+ return entry->freshness_lifetime > limit;
}
static char *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]