diff --git a/src/compress_zlib.cpp b/src/compress_zlib.cpp index 7829f341..dfb62b3a 100644 --- a/src/compress_zlib.cpp +++ b/src/compress_zlib.cpp @@ -100,7 +100,7 @@ int upx_zlib_decompress ( const upx_bytep src, unsigned src_len, z_stream s; s.zalloc = (alloc_func) 0; s.zfree = (free_func) 0; - s.next_in = (Bytef*) (acc_uintptr_t) src; // UNCONST + s.next_in = const_cast(src); // UNCONST s.avail_in = src_len; s.next_out = dst; s.avail_out = *dst_len;