summaryrefslogtreecommitdiff
path: root/libtiff/tif_pixarlog.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2016-06-28 15:37:33 +0000
committerEven Rouault <even.rouault@spatialys.com>2016-06-28 15:37:33 +0000
commitf8b7c3de4dae217d776e63e96baed0949dcbfa06 (patch)
tree7c7d4e73bc30f34c4f922edac7bb8d82a40aaac9 /libtiff/tif_pixarlog.c
parentbf5b698868b0b16f14cc03d83d74cdcd9e98983e (diff)
downloadlibtiff-git-f8b7c3de4dae217d776e63e96baed0949dcbfa06.tar.gz
Fix warning about unsigned vs signed 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 5c1d5a02..9bffccfb 100644
--- a/libtiff/tif_pixarlog.c
+++ b/libtiff/tif_pixarlog.c
@@ -1,4 +1,4 @@
-/* $Id: tif_pixarlog.c,v 1.44 2016-06-28 15:12:19 erouault Exp $ */
+/* $Id: tif_pixarlog.c,v 1.45 2016-06-28 15:37:33 erouault Exp $ */
/*
* Copyright (c) 1996-1997 Sam Leffler
@@ -786,7 +786,7 @@ PixarLogDecode(TIFF* tif, uint8* op, tmsize_t occ, uint16 s)
return (0);
}
/* Check that we will not fill more than what was allocated */
- if (sp->stream.avail_out > sp->tbuf_size)
+ if ((tmsize_t)sp->stream.avail_out > sp->tbuf_size)
{
TIFFErrorExt(tif->tif_clientdata, module, "sp->stream.avail_out > sp->tbuf_size");
return (0);