From: Ilya Leoshkevich Date: Mon, 14 Jun 2021 19:03:51 +0000 (+0200) Subject: Fix MSVC warnings in hash_head_0.c test X-Git-Tag: 2.1.0-beta1~561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834e7d83eae9ff7bfb1b9769d9f311ea7ca8e746;p=thirdparty%2Fzlib-ng.git Fix MSVC warnings in hash_head_0.c test --- diff --git a/test/hash_head_0.c b/test/hash_head_0.c index 128ae3492..1f615c5d6 100644 --- a/test/hash_head_0.c +++ b/test/hash_head_0.c @@ -63,14 +63,14 @@ int main() { return EXIT_FAILURE; } - strm.avail_in = next_in + sizeof(next_in) - strm.next_in; - strm.avail_out = next_out + sizeof(next_out) - strm.next_out; + strm.avail_in = (uint32_t)(next_in + sizeof(next_in) - strm.next_in); + strm.avail_out = (uint32_t)(next_out + sizeof(next_out) - strm.next_out); ret = PREFIX(deflate)(&strm, Z_FINISH); if (ret != Z_STREAM_END) { fprintf(stderr, "deflate() failed with code %d\n", ret); return EXIT_FAILURE; } - uint32_t compressed_size = strm.next_out - next_out; + uint32_t compressed_size = (uint32_t)(strm.next_out - next_out); ret = PREFIX(deflateEnd)(&strm); if (ret != Z_OK) {