]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fix pointer type mismatch.
authorMika Lindqvist <postmaster@raasu.org>
Fri, 4 Apr 2025 17:44:15 +0000 (20:44 +0300)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 6 Apr 2025 13:13:26 +0000 (15:13 +0200)
test/benchmarks/benchmark_uncompress.cc

index 58830c146a2321d70a48cf03f2523070f6872e08..5653a350dac8943585da379106511163b0654515 100644 (file)
@@ -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]);
         }