From d15ab96a51287469082e8d9068e2608a386f9e5f Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 17 Mar 2016 21:55:12 +0000 Subject: Fix size_t printf formatting The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted. --- desktop/netsurf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop/netsurf.c') diff --git a/desktop/netsurf.c b/desktop/netsurf.c index d6b5abe6e..2b01053f1 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -161,7 +161,8 @@ nserror netsurf_init(const char *store_path) if (hlcache_parameters.llcache.limit < MINIMUM_MEMORY_CACHE_SIZE) { hlcache_parameters.llcache.limit = MINIMUM_MEMORY_CACHE_SIZE; - LOG("Setting minimum memory cache size %zd", hlcache_parameters.llcache.limit); + LOG("Setting minimum memory cache size %" PRIsizet, + hlcache_parameters.llcache.limit); } /* Set up the max attempts made to fetch a timing out resource */ -- cgit v1.2.3