From 160d786cb664bee46bdf48e7dfecba1a0197d89b Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Thu, 8 Jan 2026 10:31:35 -0800 Subject: Fix possible loss of data warning in benchmark_inflate on MSVC 2026 benchmark_inflate.cc(131,51): warning C4267: '=': conversion from 'size_ t' to 'uint32_t', possible loss of dat --- test/benchmarks/benchmark_inflate.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/benchmarks/benchmark_inflate.cc b/test/benchmarks/benchmark_inflate.cc index 49b94e1902..5d0c7dba52 100644 --- a/test/benchmarks/benchmark_inflate.cc +++ b/test/benchmarks/benchmark_inflate.cc @@ -128,10 +128,10 @@ public: return; } - strm.avail_in = compressed_sizes[index]; // Size of the input - strm.next_in = compressed_buff[index]; // Pointer to the compressed data - strm.avail_out = MAX_SIZE; // Max size for output - strm.next_out = outbuff; // Output buffer + strm.avail_in = (uint32_t)compressed_sizes[index]; // Size of the input + strm.next_in = compressed_buff[index]; // Pointer to the compressed data + strm.avail_out = MAX_SIZE; // Max size for output + strm.next_out = outbuff; // Output buffer // Perform decompression err = PREFIX(inflate)(&strm, Z_FINISH); -- cgit 0.0.5-2-1-g0f52