From 5044fe8d3c4b9cf67becd3b0750b9afc0aee6b50 Mon Sep 17 00:00:00 2001 From: Mika Lindqvist Date: Fri, 4 Apr 2025 20:44:15 +0300 Subject: [PATCH] Fix pointer type mismatch. --- test/benchmarks/benchmark_uncompress.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); } -- 2.47.2