Merge pull request #1104 from terrelln/fast-train

Allow negative compression levels in training
This commit is contained in:
Yann Collet
2018-04-09 14:16:20 -07:00
committed by GitHub
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -550,7 +550,9 @@ int main(int argCount, const char* argv[])
U32 fastLevel;
++argument;
fastLevel = readU32FromChar(&argument);
if (fastLevel) cLevel = - (int)fastLevel;
if (fastLevel) {
dictCLevel = cLevel = -(int)fastLevel;
}
} else if (*argument != 0) {
/* Invalid character following --fast */
CLEAN_RETURN(badusage(programName));