Merge pull request #260 from FauxFaux/yesno-1

YESNO options are of type bool, not int
This commit is contained in:
Simon Arlott 2018-08-12 10:17:12 +01:00 committed by GitHub
commit 258eb31c9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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