diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2021-06-14 21:03:51 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2021-06-21 11:19:24 +0200 |
commit | 77966c02cda6f509594791879573582908a3a718 (patch) | |
tree | 78cb53795f4aa58bc2a9ceefce8e420fad10f894 | |
parent | 5d2ce271dc2f0d074ce315753bff1232bb779d53 (diff) |
Fix MSVC warnings in hash_head_0.c test
-rw-r--r-- | test/hash_head_0.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/hash_head_0.c b/test/hash_head_0.c index 128ae34..1f615c5 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) { |