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
Nat Goodspeed 2014-11-14 14:24:58 -05:00
parent b30c8ed9c5
commit e13259ae7a
1 changed files with 2 additions and 2 deletions

View File

@ -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;