diff options
author | Yann Collet <cyan@fb.com> | 2019-04-09 20:55:42 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2019-04-09 20:55:42 (GMT) |
commit | 14c71dfa9cc7161e1283e27bc688fd2bbeb637a2 (patch) | |
tree | 1cb94bbf24665abc35f72e9fd30663f9228740d8 /tests/fullbench.c | |
parent | 5ef4f3ce913dae19f6bcd065a2b231c5461e4233 (diff) | |
download | lz4-14c71dfa9cc7161e1283e27bc688fd2bbeb637a2.zip lz4-14c71dfa9cc7161e1283e27bc688fd2bbeb637a2.tar.gz lz4-14c71dfa9cc7161e1283e27bc688fd2bbeb637a2.tar.bz2 |
modified LZ4_initStreamHC() to look like LZ4_initStream()
it is now a pure initializer, for statically allocated states.
It can initialize any memory area, and because of this, requires size.
Diffstat (limited to 'tests/fullbench.c')
-rw-r--r-- | tests/fullbench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fullbench.c b/tests/fullbench.c index 34c9b7b..456c916 100644 --- a/tests/fullbench.c +++ b/tests/fullbench.c @@ -245,7 +245,7 @@ static int local_LZ4_compress_forceDict(const char* in, char* out, int inSize) LZ4_streamHC_t LZ4_streamHC; static void local_LZ4_resetStreamHC(void) { - LZ4_initStreamHC(&LZ4_streamHC, 0); + LZ4_initStreamHC(&LZ4_streamHC, sizeof(LZ4_streamHC)); } static int local_LZ4_saveDictHC(const char* in, char* out, int inSize) |