summaryrefslogtreecommitdiffstats
path: root/tests/fullbench.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2019-04-09 20:55:42 (GMT)
committerYann Collet <cyan@fb.com>2019-04-09 20:55:42 (GMT)
commit14c71dfa9cc7161e1283e27bc688fd2bbeb637a2 (patch)
tree1cb94bbf24665abc35f72e9fd30663f9228740d8 /tests/fullbench.c
parent5ef4f3ce913dae19f6bcd065a2b231c5461e4233 (diff)
downloadlz4-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.c2
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)