From: Nathan Moinvaziri Date: Sat, 4 Jul 2020 03:12:11 +0000 (-0700) Subject: Fixed const warning in deflate prime tests. X-Git-Tag: 1.9.9-b1~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75b3788d253188ece705df43f75bd1a7df871de1;p=thirdparty%2Fzlib-ng.git Fixed const warning in deflate prime tests. zlib-ng.h:1726:10: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘const char *’ --- 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 */