Commit 0352dc79 for xz

commit 0352dc7929b19f17afcdafae49ec86156cc31462
Author: Lasse Collin <lasse.collin@tukaani.org>
Date:   Mon Jul 20 22:14:05 2026 +0300

    liblzma: Silence a compiler warning

    Fixes: 5005914f1acf ("liblzma: Index decoder: Reject an obviously-bad Number of Records better")

diff --git a/src/liblzma/common/index_decoder.c b/src/liblzma/common/index_decoder.c
index 3ecb6b3e..6bd0b574 100644
--- a/src/liblzma/common/index_decoder.c
+++ b/src/liblzma/common/index_decoder.c
@@ -367,9 +367,11 @@ lzma_index_buffer_decode(lzma_index **i, uint64_t *memlimit,
 		return LZMA_PROG_ERROR;

 	// Initialize the decoder.
+	// in_size64 is to silence gcc -Wtype-limits on 32-bit targets.
 	lzma_index_coder coder;
+	const uint64_t in_size64 = in_size;
 	return_if_error(index_decoder_reset(&coder, allocator, i, *memlimit,
-			my_min(in_size, LZMA_BACKWARD_SIZE_MAX)));
+			my_min(in_size64, LZMA_BACKWARD_SIZE_MAX)));

 	// Store the input start position so that we can restore it in case
 	// of an error.