summaryrefslogtreecommitdiffstats
path: root/tests/fasttest.c
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2016-11-12 16:48:42 (GMT)
committerYann Collet <cyan@fb.com>2016-11-12 16:48:42 (GMT)
commit3580d9698098e8ad2ef757d1c3673aceca38c576 (patch)
tree343ce78efc05511fcf83698e860937796b918788 /tests/fasttest.c
parent874f3e095b1d64ab3545a3f2a3f7403a44ebb3bb (diff)
downloadlz4-3580d9698098e8ad2ef757d1c3673aceca38c576.zip
lz4-3580d9698098e8ad2ef757d1c3673aceca38c576.tar.gz
lz4-3580d9698098e8ad2ef757d1c3673aceca38c576.tar.bz2
enabled deprecation warnings on remaining obsolete functions
Diffstat (limited to 'tests/fasttest.c')
-rw-r--r--tests/fasttest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fasttest.c b/tests/fasttest.c
index a405542..7694e0c 100644
--- a/tests/fasttest.c
+++ b/tests/fasttest.c
@@ -36,8 +36,8 @@ int test_compress(const char *input, int inSize, char *output, int outSize)
if (inSize > 1024) return -2;
if (outSize - (outOffset + 8) < LZ4_compressBound(length)) return -3;
{
- const int outBytes = LZ4_compress_continue(
- lz4Stream, input + inOffset, output + outOffset + 8, length);
+ const int outBytes = LZ4_compress_fast_continue(
+ lz4Stream, input + inOffset, output + outOffset + 8, length, outSize-outOffset, 1);
if(outBytes <= 0) return -4;
memcpy(output + outOffset, &length, 4); /* input length */
memcpy(output + outOffset + 4, &outBytes, 4); /* output length */