minor greedy mod

This commit is contained in:
Yann Collet committed 2015-11-06 11:48:56 +01:00
1 parent 805a52a773
commit 444873f494
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -997,7 +997,7 @@ int main(int argc, char** argv)
argument++;
while ((*argument>= '0') && (*argument<='9'))
cLevel *= 10, cLevel += *argument++ - '0';
if (cLevel < 2) cLevel = 2;
if (cLevel < 1) cLevel = 1;
if (cLevel > ZSTD_HC_MAX_CLEVEL) cLevel = ZSTD_HC_MAX_CLEVEL;
g_params = g_seedParams[cLevel];
continue;