YESNO options are of type bool, not int

This commit is contained in:
Chris West (Faux) 2018-03-23 16:46:38 +00:00
parent fe5fc851aa
commit 26c5df4b1e
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ parseargs(int *argc, char * const **argv, struct lgetopt *opts)
switch (opts[i].argtype)
{
case YESNO:
*((int *) opts[i].argloc) = 1;
*((bool *) opts[i].argloc) = TRUE;
break;
case INTEGER:
if(*argc < 2)