Fix use of long types in 32bit zlib wrapper
This commit is contained in:
parent
eb0f609f81
commit
6ace3c8b1d
6
zlib.cpp
6
zlib.cpp
@ -37,8 +37,12 @@ size_t
|
|||||||
util::zlib::uncompress (uint8_t *dst, size_t dst_len,
|
util::zlib::uncompress (uint8_t *dst, size_t dst_len,
|
||||||
const uint8_t *src, size_t src_len) {
|
const uint8_t *src, size_t src_len) {
|
||||||
size_t actual_len = dst_len;
|
size_t actual_len = dst_len;
|
||||||
int err = ::uncompress (dst, &actual_len, src, src_len);
|
uLongf zlib_actual = actual_len;
|
||||||
|
|
||||||
|
int err = ::uncompress (dst, &zlib_actual, src, src_len);
|
||||||
error::try_code (err);
|
error::try_code (err);
|
||||||
|
|
||||||
|
actual_len = zlib_actual;
|
||||||
return actual_len;
|
return actual_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user