Merge pull request #1214 from jennifermliu/dev

Make --fast=0 fail
This commit is contained in:
Yann Collet authored and GitHub committed 2018-06-27 18:53:39 -07:00
commit a2c3a4cd0e
2 files changed
+7 -4

No files matched your search

+3 -1
View File
@@ -561,13 +561,15 @@ int main(int argCount, const char* argv[])
continue;
}
if (longCommandWArg(&argument, "--fast")) {
/* Parse optional window log */
/* Parse optional acceleration factor */
if (*argument == '=') {
U32 fastLevel;
++argument;
fastLevel = readU32FromChar(&argument);
if (fastLevel) {
dictCLevel = cLevel = -(int)fastLevel;
} else {
CLEAN_RETURN(badusage(programName));
}
} else if (*argument != 0) {
/* Invalid character following --fast */