From a39614de1f823b0038d15871d422d331b6f60236 Mon Sep 17 00:00:00 2001 From: senhuang42 Date: Tue, 13 Oct 2020 13:00:27 -0400 Subject: [PATCH] Fix incorrect usage of cycleLog() in --patch-from --- programs/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/fileio.c b/programs/fileio.c index 76e5cbf57..0ae549af2 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -897,7 +897,7 @@ static void FIO_adjustParamsForPatchFromMode(FIO_prefs_t* const prefs, if (fileWindowLog > ZSTD_WINDOWLOG_MAX) DISPLAYLEVEL(1, "Max window log exceeded by file (compression ratio will suffer)\n"); comprParams->windowLog = MIN(ZSTD_WINDOWLOG_MAX, fileWindowLog); - if (fileWindowLog > ZSTD_cycleLog(cParams.hashLog, cParams.strategy)) { + if (fileWindowLog > ZSTD_cycleLog(cParams.chainLog, cParams.strategy)) { if (!prefs->ldmFlag) DISPLAYLEVEL(1, "long mode automatically triggered\n"); FIO_setLdmFlag(prefs, 1);