From 8e29e517d59f0d04dd2d09c6b8760aa1236a1abf Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 9 Jun 2014 13:10:56 +0100 Subject: fix disc cache size option to be unsigned --- desktop/netsurf.c | 2 +- desktop/options.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 153810705..a1bc42b93 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -191,7 +191,7 @@ nserror netsurf_init(const char *messages, const char *store_path) hlcache_parameters.llcache.limit -= image_cache_parameters.limit; /* set backing store target limit */ - hlcache_parameters.llcache.store.limit = nsoption_int(disc_cache_size); + hlcache_parameters.llcache.store.limit = nsoption_uint(disc_cache_size); /* set backing store hysterissi to 20% */ hlcache_parameters.llcache.store.hysteresis = (hlcache_parameters.llcache.store.limit * 20) / 100;; diff --git a/desktop/options.h b/desktop/options.h index 391dfbc08..33ecb7554 100644 --- a/desktop/options.h +++ b/desktop/options.h @@ -89,7 +89,7 @@ NSOPTION_STRING(accept_charset, NULL) NSOPTION_INTEGER(memory_cache_size, 12 * 1024 * 1024) /** Preferred expiry size of disc cache / bytes. */ -NSOPTION_INTEGER(disc_cache_size, 1024 * 1024 * 1024) +NSOPTION_UINT(disc_cache_size, 1024 * 1024 * 1024) /** Preferred expiry age of disc cache / days. */ NSOPTION_INTEGER(disc_cache_age, 28) -- cgit v1.2.3