From fe10bc1bc30772a4584289d665d3f6a39d4e5391 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 12 Mar 2020 14:22:00 +0100 Subject: [PATCH] tif_fax3.c: fix warning C4018: '<': signed/unsigned mismatch introduced in past commits --- libtiff/tif_fax3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtiff/tif_fax3.c b/libtiff/tif_fax3.c index e96e148b..e0f35a33 100644 --- a/libtiff/tif_fax3.c +++ b/libtiff/tif_fax3.c @@ -528,7 +528,7 @@ Fax3SetupState(TIFF* tif) rowbytes = TIFFScanlineSize(tif); rowpixels = td->td_imagewidth; } - if (rowbytes < (rowpixels + 7) / 8) + if ((uint64)rowbytes < ((uint64)rowpixels + 7) / 8) { TIFFErrorExt(tif->tif_clientdata, module, "Inconsistent number of bytes per row : rowbytes=%lu rowpixels=%lu",