]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Fix MSVC warnings in deflate_quick_block_open
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 19 Mar 2021 21:34:32 +0000 (22:34 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Mon, 22 Mar 2021 09:30:43 +0000 (10:30 +0100)
commit0836e24348ed8cd10fafcf762616a80ce14ef7e9
tree5360e7613477a1c91f910c33d22c3245ab4187a3
parent8e0f38cdd368d9a9bca826544bdb7bdea1fc73f3
Fix MSVC warnings in deflate_quick_block_open

Add casts in order to fix the following warnings [1]:

C:\Users\Nathan\Source\zlib-ng\test\deflate_quick_block_open.c(62,69): warning C4244: '=': conversion from '__int64' to
 'uint32_t', possible loss of data [C:\Users\Nathan\Source\zlib-ng\deflate_quick_block_open.vcxproj]
C:\Users\Nathan\Source\zlib-ng\test\deflate_quick_block_open.c(73,1): warning C4244: 'initializing': conversion from '_
_int64' to 'uint32_t', possible loss of data [C:\Users\Nathan\Source\zlib-ng\deflate_quick_block_open.vcxproj]

[1] https://github.com/zlib-ng/zlib-ng/pull/880#issuecomment-802432700
test/deflate_quick_block_open.c