Remove a couple tests for unsigned long < 0.
clang correctly notes that such tests add nothing to the runtime behavior of a program. Unfortunately, clang notes that in the form of a compile error.meow-7.2.2
parent
b30c8ed9c5
commit
e13259ae7a
|
|
@ -212,7 +212,7 @@ int main(int argc, char** argv)
|
|||
char * end;
|
||||
|
||||
value = strtoul(optarg, &end, 10);
|
||||
if (value < 0 || value > 100 || *end != '\0')
|
||||
if (value > 100 || *end != '\0')
|
||||
{
|
||||
usage(std::cerr);
|
||||
return 1;
|
||||
|
|
@ -227,7 +227,7 @@ int main(int argc, char** argv)
|
|||
char * end;
|
||||
|
||||
value = strtoul(optarg, &end, 10);
|
||||
if (value < 0 || value > 3 || *end != '\0')
|
||||
if (value > 3 || *end != '\0')
|
||||
{
|
||||
usage(std::cerr);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue