From d2c7f195f1dfaabfea39e576659b50ff84c53bfd Mon Sep 17 00:00:00 2001 From: Bob Friesenhahn Date: Sat, 12 Nov 2016 18:35:11 +0000 Subject: * tools/tiffcrop.c (readContigTilesIntoBuffer): Fix signed/unsigned comparison warning. --- tools/tiffcrop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/tiffcrop.c') diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c index d981b994..9e291737 100644 --- a/tools/tiffcrop.c +++ b/tools/tiffcrop.c @@ -1,4 +1,4 @@ -/* $Id: tiffcrop.c,v 1.43 2016-11-11 19:33:06 erouault Exp $ */ +/* $Id: tiffcrop.c,v 1.44 2016-11-12 18:35:12 bfriesen Exp $ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below @@ -822,7 +822,7 @@ static int readContigTilesIntoBuffer (TIFF* in, uint8* buf, } /* Add 3 padding bytes for extractContigSamplesShifted32bits */ - if( tile_buffsize > 0xFFFFFFFFU - 3 ) + if( tile_buffsize > (tsize_t) (0xFFFFFFFFU - 3U) ) { TIFFError("readContigTilesIntoBuffer", "Integer overflow when calculating buffer size."); exit(-1); -- cgit v1.2.1