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

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)