From: ShadowFlare Date: Mon, 14 Mar 2011 11:22:16 +0000 (-0600) Subject: Add a couple needed type casts. X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?a=commitdiff_plain;h=1eb6aee0df95fcb9c17241ff34046b8e5c92e563;p=SComp.git Add a couple needed type casts. --- diff --git a/SComp.cpp b/SComp.cpp index 19b47a9..9a930ad 100644 --- a/SComp.cpp +++ b/SComp.cpp @@ -496,7 +496,7 @@ void __fastcall Deflate(LPVOID lpvDestinationMem, LPDWORD lpdwCompressedSize, LP } } - compress2((LPBYTE)lpvDestinationMem,lpdwCompressedSize,(LPBYTE)lpvSourceMem,dwDecompressedSize,dwCompressLevel); + compress2((LPBYTE)lpvDestinationMem,(unsigned long *)lpdwCompressedSize,(LPBYTE)lpvSourceMem,dwDecompressedSize,dwCompressLevel); *lpdwCompressionSubType = 0; } @@ -637,7 +637,7 @@ void __fastcall HuffmanDecompress(LPVOID lpvDestinationMem, LPDWORD lpdwDecompre void __fastcall Inflate(LPVOID lpvDestinationMem, LPDWORD lpdwDecompressedSize, LPVOID lpvSourceMem, DWORD dwCompressedSize) { - uncompress((LPBYTE)lpvDestinationMem,lpdwDecompressedSize,(LPBYTE)lpvSourceMem,dwCompressedSize); + uncompress((LPBYTE)lpvDestinationMem,(unsigned long *)lpdwDecompressedSize,(LPBYTE)lpvSourceMem,dwCompressedSize); } #endif