mirror of
https://github.com/GerbilSoft/zlib-ng.git
synced 2025-06-18 11:35:35 -04:00
Fix casting warning/error in test_compress_bound.cc
Fixes the following error when building with msvc compiler ``` test_compress_bound.cc D:\zlib-ng\test\test_compress_bound.cc(41,50): error C2220: the following warning is treated as an error D:\zlib-ng\test\test_compress_bound.cc(41,50): warning C4267: 'argument': conversion from 'size_t' to 'unsigned long', possible loss of data D:\zlib-ng\test\test_compress_bound.cc(43,68): warning C4267: 'argument': conversion from 'size_t' to 'unsigned long', possible loss of data ```
This commit is contained in:
parent
54569660a8
commit
7fdc3aa26a
@ -34,7 +34,7 @@ public:
|
||||
uncompressed[j] = (uint8_t)j;
|
||||
}
|
||||
|
||||
for (z_size_t i = 0; i < MAX_LENGTH; i++) {
|
||||
for (z_uintmax_t i = 0; i < MAX_LENGTH; i++) {
|
||||
z_uintmax_t dest_len = sizeof(dest);
|
||||
|
||||
/* calculate actual output length */
|
||||
|
Loading…
Reference in New Issue
Block a user