summaryrefslogtreecommitdiffstats
path: root/examples/blockStreaming_lineByLine.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/blockStreaming_lineByLine.c')
-rw-r--r--examples/blockStreaming_lineByLine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blockStreaming_lineByLine.c b/examples/blockStreaming_lineByLine.c
index 8ae268f..c4fd2e3 100644
--- a/examples/blockStreaming_lineByLine.c
+++ b/examples/blockStreaming_lineByLine.c
@@ -64,8 +64,8 @@ static void test_compress(
#endif
{
- const int cmpBytes = LZ4_compress_safe_continue(
- lz4Stream, inpPtr, cmpBuf, inpBytes, cmpBufBytes);
+ const int cmpBytes = LZ4_compress_fast_continue(
+ lz4Stream, inpPtr, cmpBuf, inpBytes, cmpBufBytes, 1);
if (cmpBytes <= 0) break;
write_uint16(outFp, (uint16_t) cmpBytes);
write_bin(outFp, cmpBuf, cmpBytes);