summaryrefslogtreecommitdiff
path: root/libtiff/tif_pixarlog.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2016-08-15 21:36:43 +0000
committerEven Rouault <even.rouault@spatialys.com>2016-08-15 21:36:43 +0000
commitee80566cd1a9840360626678f8c60b27da634392 (patch)
treee0edc67168d2f8095840cca1ac53c489316456a6 /libtiff/tif_pixarlog.c
parentf18e33b3a5ab03d3c988aa367c2729c98edf163a (diff)
downloadlibtiff-git-ee80566cd1a9840360626678f8c60b27da634392.tar.gz
Fix signed vs unsigned comparison
Diffstat (limited to 'libtiff/tif_pixarlog.c')
-rw-r--r--libtiff/tif_pixarlog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiff/tif_pixarlog.c b/libtiff/tif_pixarlog.c
index 47df14ce..811b5acb 100644
--- a/libtiff/tif_pixarlog.c
+++ b/libtiff/tif_pixarlog.c
@@ -1,4 +1,4 @@
-/* $Id: tif_pixarlog.c,v 1.46 2016-08-15 20:49:48 erouault Exp $ */
+/* $Id: tif_pixarlog.c,v 1.47 2016-08-15 21:36:43 erouault Exp $ */
/*
* Copyright (c) 1996-1997 Sam Leffler
@@ -1142,7 +1142,7 @@ PixarLogEncode(TIFF* tif, uint8* bp, tmsize_t cc, uint16 s)
llen = sp->stride * td->td_imagewidth;
/* Check against the number of elements (of size uint16) of sp->tbuf */
- if( n > td->td_rowsperstrip * llen )
+ if( n > (tmsize_t)(td->td_rowsperstrip * llen) )
{
TIFFErrorExt(tif->tif_clientdata, module,
"Too many input bytes provided");