From 7877dc7d3ed8c407fea7ba5f7dd69766d5a21ff9 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Tue, 8 Jul 2003 20:37:31 +0000 Subject: [PATCH] avoid warning --- libtiff/tif_zip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libtiff/tif_zip.c b/libtiff/tif_zip.c index 0eaaaec9..d64a7ea5 100644 --- a/libtiff/tif_zip.c +++ b/libtiff/tif_zip.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_zip.c,v 1.3 2002-03-06 14:07:27 warmerda Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/libtiff/tif_zip.c,v 1.4 2003-07-08 20:37:31 warmerda Exp $ */ /* * Copyright (c) 1995-1997 Sam Leffler @@ -228,7 +228,8 @@ ZIPPostEncode(TIFF* tif) switch (state) { case Z_STREAM_END: case Z_OK: - if (sp->stream.avail_out != tif->tif_rawdatasize) { + if ((int)sp->stream.avail_out != (int)tif->tif_rawdatasize) + { tif->tif_rawcc = tif->tif_rawdatasize - sp->stream.avail_out; TIFFFlushData1(tif);