]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed const warning in deflate prime tests.
authorNathan Moinvaziri <nathan@nathanm.com>
Sat, 4 Jul 2020 03:12:11 +0000 (20:12 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 10 Jul 2020 13:41:41 +0000 (15:41 +0200)
     zlib-ng.h:1726:10: note: expected ‘const uint8_t * {aka const unsigned char *}’ but argument is of type ‘const char *’

test/example.c

index c1161a7e73d85ab1aae5b20b0c66ea5c07b0e734..c744fe71ec0b5efda2ea68657eb201d7e556ee0c 100644 (file)
@@ -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 */