diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-14 17:06:50 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-17 13:24:47 +0100 |
commit | 4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca (patch) | |
tree | 4ed45be7545229ce5d8bb124a8332b5444004b1b /source/fitz/store.c | |
parent | c9bad4ef3e32bc799b134bc3b258f9392cf60e3e (diff) | |
download | mupdf-4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca.tar.xz |
Use 'size_t' instead of int as appropriate.
This silences the many warnings we get when building for x64
in windows.
This does not address any of the warnings we get in thirdparty
libraries - in particular harfbuzz. These look (at a quick
glance) harmless though.
Diffstat (limited to 'source/fitz/store.c')
-rw-r--r-- | source/fitz/store.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/store.c b/source/fitz/store.c index e29aee2d..862c179c 100644 --- a/source/fitz/store.c +++ b/source/fitz/store.c @@ -120,7 +120,7 @@ evict(fz_context *ctx, fz_item *item) fz_lock(ctx, FZ_LOCK_ALLOC); } -static int +static size_t ensure_space(fz_context *ctx, size_t tofree) { fz_item *item, *prev; @@ -298,7 +298,7 @@ fz_store_item(fz_context *ctx, void *key, void *val_, size_t itemsize, fz_store_ while (size > store->max) { /* ensure_space may drop, then retake the lock */ - int saved = ensure_space(ctx, size - store->max); + size_t saved = ensure_space(ctx, size - store->max); size -= saved; if (saved == 0) { |