mirror of
https://github.com/GerbilSoft/zlib-ng.git
synced 2025-06-18 19:45:37 -04:00
Fix pointer type mismatch.
This commit is contained in:
parent
5ab093eebb
commit
e88471f379
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user