From 75b3788d253188ece705df43f75bd1a7df871de1 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Fri, 3 Jul 2020 20:12:11 -0700 Subject: [PATCH] Fixed const warning in deflate prime tests. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit zlib-ng.h:1726:10: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘const char *’ --- test/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/example.c b/test/example.c index c1161a7e..c744fe71 100644 --- a/test/example.c +++ b/test/example.c @@ -855,7 +855,7 @@ void test_deflate_prime(unsigned char *compr, size_t comprLen, unsigned char *un CHECK_ERR(err, "deflate"); /* Gzip uncompressed data crc32 */ - crc = PREFIX(crc32)(0, hello, (uint32_t)len); + crc = PREFIX(crc32)(0, (const uint8_t *)hello, (uint32_t)len); err = PREFIX(deflatePrime)(&c_stream, 32, crc); CHECK_ERR(err, "deflatePrime"); /* Gzip uncompressed data length */ -- 2.47.2