diff options
author | Irwan Djajadi <irwan@djajadi.net> | 2016-04-19 20:01:35 (GMT) |
---|---|---|
committer | Irwan Djajadi <irwan@djajadi.net> | 2016-04-19 20:01:35 (GMT) |
commit | 10e3eecc566440eaad65a74063527d194ec0133a (patch) | |
tree | fb6659f9ed316683bf846c5992f258ead6e3a769 /lib | |
parent | 3e5bb67537da4e93c13fdaf9ae5d04b0afef3c5a (diff) | |
download | lz4-10e3eecc566440eaad65a74063527d194ec0133a.zip lz4-10e3eecc566440eaad65a74063527d194ec0133a.tar.gz lz4-10e3eecc566440eaad65a74063527d194ec0133a.tar.bz2 |
fixed non-C99 compiler
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lz4.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -684,12 +684,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); @@ -829,7 +830,7 @@ _next_match: /* Match description too long : reduce it */ matchLength = (15-1) + (oMaxMatch-op) * 255; } - //printf("offset %5i, matchLength%5i \n", (int)(ip-match), matchLength + MINMATCH); + /*printf("offset %5i, matchLength%5i \n", (int)(ip-match), matchLength + MINMATCH);*/ ip += MINMATCH + matchLength; if (matchLength>=ML_MASK) @@ -921,12 +922,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); |