Merge pull request #3 from jackoalan/lzo-int-fix

LZO integer-type fix
This commit is contained in:
Phillip 2015-04-06 22:56:06 -07:00
commit 3276e00864
1 changed files with 2 additions and 2 deletions

View File

@ -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) atInt32 decompressLZO(const atUint8* source, const atInt32 sourceSize, atUint8* dst, atInt32& dstSize)
{ {
int srcSize = sourceSize; int srcSize = sourceSize;
int size = dstSize; lzo_uint size = dstSize;
int result = lzo1x_decompress_safe(source, srcSize, dst, (lzo_uintp)&size, NULL); int result = lzo1x_decompress_safe(source, srcSize, dst, &size, NULL);
dstSize -= size; dstSize -= size;
return result; return result;