summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-02-12 17:09:38 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-03-12 18:58:43 (GMT)
commitb3628cb0c51bb93f681707b2d0cdbce5ccdae818 (patch)
treedbbdfee153b9b30bd6c69f88b18f0b6a33428d75 /tests
parentaa36e118f10d825ceb3899d3e137d643ed469331 (diff)
downloadlz4-b3628cb0c51bb93f681707b2d0cdbce5ccdae818.zip
lz4-b3628cb0c51bb93f681707b2d0cdbce5ccdae818.tar.gz
lz4-b3628cb0c51bb93f681707b2d0cdbce5ccdae818.tar.bz2
Avoid Resetting the Context When Possible
Diffstat (limited to 'tests')
-rw-r--r--tests/framebench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/framebench.c b/tests/framebench.c
index 8dcfa41..21c3704 100644
--- a/tests/framebench.c
+++ b/tests/framebench.c
@@ -118,7 +118,7 @@ size_t compress_extState(bench_params_t *p) {
char *oend = obuf + osize;
size_t oused;
- oused = LZ4_compress_fast_extState(ctx, ibuf + ((iter * 2654435761U) % num_ibuf) * isize, obuf, isize, oend - obuf, 0);
+ oused = LZ4_compress_fast_safeExtState(ctx, ibuf + ((iter * 2654435761U) % num_ibuf) * isize, obuf, isize, oend - obuf, 0);
obuf += oused;
return obuf - p->obuf;