summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2020-07-03 20:12:11 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2020-07-10 15:41:41 +0200
commit75b3788d253188ece705df43f75bd1a7df871de1 (patch)
tree02b8705f76e805deef06594d53fb6f9bf176e6f7 /test/example.c
parent9f89c8fc1afd570b95df2d066c085e4cb581ef8c (diff)
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 *’
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/example.c b/test/example.c
index c1161a7..c744fe7 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 */