summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-05 02:04:32 (GMT)
committerYann Collet <cyan@fb.com>2016-11-05 02:04:32 (GMT)
commit207f478babe676fc000e6e655c150a03a79570b0 (patch)
treefcc6567802e5a461d395e895e5ab24be3550d73a
parent8195ba8f7bbf0153a1dc01d2ada8823a29462afa (diff)
downloadlz4-207f478babe676fc000e6e655c150a03a79570b0.zip
lz4-207f478babe676fc000e6e655c150a03a79570b0.tar.gz
lz4-207f478babe676fc000e6e655c150a03a79570b0.tar.bz2
minor refactor
-rw-r--r--NEWS1
-rw-r--r--lib/lz4.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 7bfa3c5..9cd080e 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ Improved: Small compression speed improvement on 64-bits systems
Improved: Performance on ARMv6 and ARMv7
Added : Debianization, by Evgeniy Polyakov
Makefile: Generates object files (*.o) for faster (re)compilation on low power systems
+New : recursive mode in benchmark, by Przemyslaw Skibinski
Fix : cli : crash on some invalid inputs
Fix : cli : -t correctly validates lz4-compressed files, by Nick Terrell
Fix : better ratio on 64-bits big-endian targets
diff --git a/lib/lz4.c b/lib/lz4.c
index 6db4c0b..39a7de9 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -701,7 +701,7 @@ int LZ4_compress_fast(const char* source, char* dest, int inputSize, int maxOutp
void* ctxPtr = ALLOCATOR(1, sizeof(LZ4_stream_t)); /* malloc-calloc always properly aligned */
#else
LZ4_stream_t ctx;
- void* ctxPtr = &ctx;
+ void* const ctxPtr = &ctx;
#endif
int result = LZ4_compress_fast_extState(ctxPtr, source, dest, inputSize, maxOutputSize, acceleration);