From e82db4ed387d3f63a601904c271232618218abff Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Tue, 21 Nov 2006 06:32:13 +0100 Subject: [PATCH] Use proper const_cast. --- src/compress_zlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;