libtiff: Merge branch 'TIFFClientOpenExt_warning_fix' into 'master'

From 6bcaf4a1632f482b74c6afb0aec672a1a8ada35c Mon Sep 17 00:00:00 2001
From: Even Rouault <[EMAIL REDACTED]>
Date: Wed, 23 Nov 2022 14:14:30 +0100
Subject: [PATCH] TIFFClientOpenExt(): fix warning on 32-bit platforms (master
 only)

---
 libtiff/tif_open.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libtiff/tif_open.c b/libtiff/tif_open.c
index a169de10..2d623033 100644
--- a/libtiff/tif_open.c
+++ b/libtiff/tif_open.c
@@ -226,7 +226,9 @@ TIFFClientOpenExt(
 	tmsize_t size_to_alloc = (tmsize_t)(sizeof (TIFF) + strlen(name) + 1);
 	if (opts && opts->max_single_mem_alloc > 0 &&
 	    size_to_alloc > opts->max_single_mem_alloc) {
-		_TIFFErrorEarly(opts, clientdata, module, "%s: Memory allocation of %" PRIu64 " bytes is beyond the %" PRIu64 " byte limit defined in open options", name, size_to_alloc, opts->max_single_mem_alloc);
+		_TIFFErrorEarly(opts, clientdata, module,
+		                "%s: Memory allocation of %" PRIu64 " bytes is beyond the %" PRIu64 " byte limit defined in open options",
+		                name, (uint64_t)size_to_alloc, (uint64_t)opts->max_single_mem_alloc);
 		goto bad2;
 	}
 	tif = (TIFF *)_TIFFmallocExt(NULL, size_to_alloc);