From: Mika Lindqvist Date: Fri, 4 Apr 2025 17:44:15 +0000 (+0300) Subject: Fix pointer type mismatch. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e88471f3795170e6fe63e384b77b71ab5c46d9ad;p=thirdparty%2Fzlib-ng.git Fix pointer type mismatch. --- diff --git a/test/benchmarks/benchmark_uncompress.cc b/test/benchmarks/benchmark_uncompress.cc index 58830c14..5653a350 100644 --- a/test/benchmarks/benchmark_uncompress.cc +++ b/test/benchmarks/benchmark_uncompress.cc @@ -51,7 +51,7 @@ public: compressed_buff[i] = (uint8_t *)zng_alloc(MAX_SIZE + 1); assert(compressed_buff[i] != NULL); - uLong compressed_size = maxlen; + z_uintmax_t compressed_size = maxlen; int err = PREFIX(compress)(compressed_buff[i], &compressed_size, inbuff, sizes[i]); if (err != Z_OK) { fprintf(stderr, "Compression failed with error %d\n", err); @@ -68,7 +68,7 @@ public: int index = 0; while (sizes[index] != state.range(0)) ++index; - uLong out_size = maxlen; + z_uintmax_t out_size = maxlen; err = PREFIX(uncompress)(outbuff, &out_size, compressed_buff[index], compressed_sizes[index]); }