From f8b7c3de4dae217d776e63e96baed0949dcbfa06 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 28 Jun 2016 15:37:33 +0000 Subject: [PATCH] Fix warning about unsigned vs signed comparison --- libtiff/tif_pixarlog.c | 4 ++-- 1 file 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);