From 6e2a71d0b743c105c71f88a7ed1de0851cdd90ca Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 2 Nov 2016 20:02:40 +0000 Subject: Fix signed/unsigned and size_t/int/fz_off_t warnings. All seen in MSVC, mostly in 64bit builds. --- source/tools/muraster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/tools') diff --git a/source/tools/muraster.c b/source/tools/muraster.c index a85475e8..f08de504 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -558,7 +558,7 @@ static int alphabits_text = 8; static int alphabits_graphics = 8; static int min_band_height; -static int max_band_memory; +static size_t max_band_memory; int band_height; static int errored = 0; @@ -1143,7 +1143,7 @@ initialise_banding(fz_context *ctx, render_details *render, int color) w = render->ibounds.x1 - render->ibounds.x0; min_band_mem = bpp * w * min_band_height; - reps = max_band_memory / min_band_mem; + reps = (int)(max_band_memory / min_band_mem); if (reps < 1) reps = 1; -- cgit v1.2.3