From 4a4e6adae4c1a0e9ab3b6fad477edfe26c1a2aca Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 14 Jun 2016 17:06:50 +0100 Subject: 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. --- source/fitz/filter-sgi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/fitz/filter-sgi.c') diff --git a/source/fitz/filter-sgi.c b/source/fitz/filter-sgi.c index c0fd9a74..ceb2a548 100644 --- a/source/fitz/filter-sgi.c +++ b/source/fitz/filter-sgi.c @@ -214,7 +214,7 @@ sgilog16val(fz_context *ctx, uint16_t v) } static int -next_sgilog16(fz_context *ctx, fz_stream *stm, int max) +next_sgilog16(fz_context *ctx, fz_stream *stm, size_t max) { fz_sgilog16 *state = stm->state; uint16_t *p; @@ -434,7 +434,7 @@ sgilog24val(fz_context *ctx, fz_stream *chain, uint8_t *rgb) } static int -next_sgilog24(fz_context *ctx, fz_stream *stm, int max) +next_sgilog24(fz_context *ctx, fz_stream *stm, size_t max) { fz_sgilog24 *state = stm->state; uint8_t *p; @@ -557,7 +557,7 @@ sgilog32val(fz_context *ctx, uint32_t p, uint8_t *rgb) } static int -next_sgilog32(fz_context *ctx, fz_stream *stm, int max) +next_sgilog32(fz_context *ctx, fz_stream *stm, size_t max) { fz_sgilog32 *state = stm->state; uint32_t *p; -- cgit v1.2.3