summaryrefslogtreecommitdiff
path: root/source/tools/muraster.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-02 20:02:40 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-03 18:10:50 +0000
commit6e2a71d0b743c105c71f88a7ed1de0851cdd90ca (patch)
tree8bd6d452d6b4686f509e6478edf13f267621d6f3 /source/tools/muraster.c
parent0289421f68b810cee600a5a047507091ff4731df (diff)
downloadmupdf-6e2a71d0b743c105c71f88a7ed1de0851cdd90ca.tar.xz
Fix signed/unsigned and size_t/int/fz_off_t warnings.
All seen in MSVC, mostly in 64bit builds.
Diffstat (limited to 'source/tools/muraster.c')
-rw-r--r--source/tools/muraster.c4
1 files changed, 2 insertions, 2 deletions
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;