(parse_opt): Avoid warning in case -t is used with maximum allowed number.
This commit is contained in:
parent
e361ccd999
commit
efe0cd0fdc
@ -530,7 +530,7 @@ parse_opt (int key, char *arg, struct argp_state *state)
|
||||
{
|
||||
case 't':
|
||||
num = strtoul (arg, NULL, 0);
|
||||
if (num < MAX_THREADS)
|
||||
if (num <= MAX_THREADS)
|
||||
threads = num;
|
||||
else
|
||||
printf ("\
|
||||
|
Loading…
Reference in New Issue
Block a user