diff options
author | Xan Lopez <xan@gnome.org> | 2009-08-05 14:20:01 +0300 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-08-05 14:20:01 +0300 |
commit | ec567fd1d95fe5ac3f9580f6397ecdfcd4e0305c (patch) | |
tree | 18c513c57f217d2e669f246d96d5c4b3bf4dcb38 /libsoup | |
parent | fbcbf0ab0b7e04b65b2a1ae8cfa3e577b1985d54 (diff) | |
download | libsoup-ec567fd1d95fe5ac3f9580f6397ecdfcd4e0305c.tar.gz |
soup-cache: limit can't be negative here, so use a proper unsigned to store it
Diffstat (limited to 'libsoup')
-rw-r--r-- | 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 00ffde89..cf93b1a6 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 * |