summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-03-17 21:55:12 +0000
committerVincent Sanders <vince@kyllikki.org>2016-03-17 22:00:54 +0000
commitd15ab96a51287469082e8d9068e2608a386f9e5f (patch)
tree346fb22044567be929d9f0dc47f62732f4633815 /desktop
parent232cda5317ae39d54852f741fbbd09c9618143cd (diff)
downloadnetsurf-d15ab96a51287469082e8d9068e2608a386f9e5f.tar.gz
netsurf-d15ab96a51287469082e8d9068e2608a386f9e5f.tar.bz2
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.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/netsurf.c3
1 files changed, 2 insertions, 1 deletions
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 */