summaryrefslogtreecommitdiff
path: root/source/fitz/store.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/store.c')
-rw-r--r--source/fitz/store.c4
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)
{