diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2026-01-08 10:31:35 -0800 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2026-01-09 00:26:41 +0100 |
| commit | 160d786cb664bee46bdf48e7dfecba1a0197d89b (patch) | |
| tree | bfe0eab2f422bb5e0235e5b2f45c0d9ed541ba75 /test | |
| parent | 6bb27e3726010be652d33497995abdb915460db5 (diff) | |
| download | Project-Tick-160d786cb664bee46bdf48e7dfecba1a0197d89b.tar.gz Project-Tick-160d786cb664bee46bdf48e7dfecba1a0197d89b.zip | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/benchmarks/benchmark_inflate.cc | 8 |
1 files 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); |
