diff options
author | Irwan Djajadi <irwan@djajadi.net> | 2016-04-19 20:06:15 (GMT) |
---|---|---|
committer | Irwan Djajadi <irwan@djajadi.net> | 2016-04-19 20:06:15 (GMT) |
commit | bc70a4b72edd76c4b9db15692b309acc95bc5d9a (patch) | |
tree | 6c39b5872d0a45fa95a33d0fbe0389a4c17b245f /lib/lz4.c | |
parent | 973baa2c191629458a454dc75bdb251255b4a402 (diff) | |
parent | 10e3eecc566440eaad65a74063527d194ec0133a (diff) | |
download | lz4-bc70a4b72edd76c4b9db15692b309acc95bc5d9a.zip lz4-bc70a4b72edd76c4b9db15692b309acc95bc5d9a.tar.gz lz4-bc70a4b72edd76c4b9db15692b309acc95bc5d9a.tar.bz2 |
fixed non-C99 compilers
Diffstat (limited to 'lib/lz4.c')
-rw-r--r-- | lib/lz4.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -730,12 +730,13 @@ int LZ4_compress_fast(const char* source, char* dest, int inputSize, int maxOutp LZ4_stream_t ctx; void* ctxPtr = &ctx; #endif + int result; #if (HEAPMODE) if (!ctxPtr) { return 0; } #endif - int result = LZ4_compress_fast_extState(ctxPtr, source, dest, inputSize, maxOutputSize, acceleration); + result = LZ4_compress_fast_extState(ctxPtr, source, dest, inputSize, maxOutputSize, acceleration); #if (HEAPMODE) FREEMEM(ctxPtr); @@ -966,12 +967,13 @@ int LZ4_compress_destSize(const char* src, char* dst, int* srcSizePtr, int targe LZ4_stream_t ctxBody; void* ctx = &ctxBody; #endif + int result; #if (HEAPMODE) if (!ctx) { return 0; } #endif - int result = LZ4_compress_destSize_extState(ctx, src, dst, srcSizePtr, targetDstSize); + result = LZ4_compress_destSize_extState(ctx, src, dst, srcSizePtr, targetDstSize); #if (HEAPMODE) FREEMEM(ctx); |