libtiff: Merge branch 'tiffcrop_formatting_fix' into 'master'

From 6f7c1ce57f7bc59f50452070855e2255e70aacfa Mon Sep 17 00:00:00 2001
From: Even Rouault <[EMAIL REDACTED]>
Date: Sun, 23 Oct 2022 14:39:26 +0200
Subject: [PATCH] tiffcrop: add casts in TIFFError() to fix compiler warnings

---
 tools/tiffcrop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/tiffcrop.c b/tools/tiffcrop.c
index 748c07db..90b75786 100644
--- a/tools/tiffcrop.c
+++ b/tools/tiffcrop.c
@@ -3907,11 +3907,11 @@ static int readContigStripsIntoBuffer (TIFF* in, uint8_t* buf)
                 rows = bytes_read / scanline_size;
                 if ((strip < (nstrips - 1)) && (bytes_read != (int32_t)stripsize))
                         TIFFError("", "Strip %"PRIu32": read %"PRId64" bytes, strip size %"PRIu64,
-                                  strip + 1, bytes_read, stripsize);
+                                  strip + 1, (uint64_t)bytes_read, (uint64_t)stripsize);
 
                 if (bytes_read < 0 && !ignore) {
                         TIFFError("", "Error reading strip %"PRIu32" after %"PRIu64" rows",
-                                  strip, rows);
+                                  strip, (uint64_t)rows);
                         return 0;
                 }
                 bufp += stripsize;