tif_fax3.c: fix warning C4018: '<': signed/unsigned mismatch introduced in past commits

This commit is contained in:
Even Rouault 2020-03-12 14:22:00 +01:00
parent 0cd92e6459
commit fe10bc1bc3
No known key found for this signature in database
GPG Key ID: 33EBBFC47B3DD87D

View File

@ -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",