summaryrefslogtreecommitdiff
path: root/tools/tiffcrop.c
diff options
context:
space:
mode:
authorBob Friesenhahn <bfriesen@simple.dallas.tx.us>2016-11-12 18:35:11 +0000
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>2016-11-12 18:35:11 +0000
commitd2c7f195f1dfaabfea39e576659b50ff84c53bfd (patch)
treef5097b6a190a1bf67cde21e750bb7bea2b7be301 /tools/tiffcrop.c
parent35b7f035a7e4d22a2f97c7bd545bf2837aad4943 (diff)
downloadlibtiff-git-d2c7f195f1dfaabfea39e576659b50ff84c53bfd.tar.gz
* tools/tiffcrop.c (readContigTilesIntoBuffer): Fix
signed/unsigned comparison warning.
Diffstat (limited to 'tools/tiffcrop.c')
-rw-r--r--tools/tiffcrop.c4
1 files changed, 2 insertions, 2 deletions
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);