Skip to content

Commit

Permalink
Merge pull request #51 from NickWilde263/patch-1
Browse files Browse the repository at this point in the history
Fix `-Wlogical-not-parentheses` warning (assuming you want to check if a bit not set)
  • Loading branch information
cofyc-bot authored Jan 24, 2022
2 parents d2fe1ee + 1946459 commit 1509171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ argparse_parse(struct argparse *self, int argc, const char **argv)
unknown:
fprintf(stderr, "error: unknown option `%s`\n", self->argv[0]);
argparse_usage(self);
if (!self->flags & ARGPARSE_IGNORE_UNKNOWN_ARGS) {
if (!(self->flags & ARGPARSE_IGNORE_UNKNOWN_ARGS)) {
exit(EXIT_FAILURE);
}
}
Expand Down

0 comments on commit 1509171

Please sign in to comment.