From: Nathan Moinvaziri Date: Wed, 3 Dec 2025 05:19:45 +0000 (-0800) Subject: Fixed casting warning in benchmark_uncompress on MSVC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909d4e2fd4e6898800f0ef32318e5df13089abed;p=thirdparty%2Fzlib-ng.git Fixed casting warning in benchmark_uncompress on MSVC benchmark_uncompress.cc(55,93): warning C4244: 'argument': conversion from 'int64_t' to 'size_t', possible loss of data --- diff --git a/test/benchmarks/benchmark_uncompress.cc b/test/benchmarks/benchmark_uncompress.cc index 998b6ae29..5c11af0f5 100644 --- a/test/benchmarks/benchmark_uncompress.cc +++ b/test/benchmarks/benchmark_uncompress.cc @@ -27,7 +27,7 @@ private: uint8_t *outbuff; uint8_t *compressed_buff[NUM_TESTS]; z_uintmax_t compressed_sizes[NUM_TESTS]; - int64_t sizes[NUM_TESTS] = {1, 64, 1024, 16384, 128*1024, 1024*1024}; + size_t sizes[NUM_TESTS] = {1, 64, 1024, 16384, 128*1024, 1024*1024}; public: void SetUp(const ::benchmark::State& state) {