From 320e1060ca5a84162dd518b6305a5516e26b9eac Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Mon, 6 Apr 2015 19:52:49 -1000 Subject: [PATCH] LZO integer-type fix --- src/Athena/Compression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Athena/Compression.cpp b/src/Athena/Compression.cpp index 2ed4ac5..e69bcd5 100644 --- a/src/Athena/Compression.cpp +++ b/src/Athena/Compression.cpp @@ -108,8 +108,8 @@ atInt32 compressZlib(const atUint8 *src, atUint32 srcLen, atUint8* dst, atUint32 atInt32 decompressLZO(const atUint8* source, const atInt32 sourceSize, atUint8* dst, atInt32& dstSize) { int srcSize = sourceSize; - int size = dstSize; - int result = lzo1x_decompress_safe(source, srcSize, dst, (lzo_uintp)&size, NULL); + lzo_uint size = dstSize; + int result = lzo1x_decompress_safe(source, srcSize, dst, &size, NULL); dstSize -= size; return result;