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;