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:
Pavel P 2024-11-27 23:13:34 +02:00 committed by Hans Kristian Rosbach
parent 54569660a8
commit 7fdc3aa26a

View File

@ -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 */