]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed casting warning in benchmark_uncompress on MSVC
authorNathan Moinvaziri <nathan@nathanm.com>
Wed, 3 Dec 2025 05:19:45 +0000 (21:19 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 3 Dec 2025 11:10:52 +0000 (12:10 +0100)
benchmark_uncompress.cc(55,93): warning C4244: 'argument': conversion from 'int64_t' to 'size_t', possible loss of data

test/benchmarks/benchmark_uncompress.cc

index 998b6ae29c6cd497ede6cee2a0a8cd40673a3f56..5c11af0f5a555ffc7fbe80f97c58fe974c2e08cb 100644 (file)
@@ -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) {