Take advantage of types being bit flags

This commit is contained in:
Nick Chambers 2022-06-19 11:28:59 -05:00
parent f019f09a22
commit b39e377f4f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ struct gargoyle_opt *gargoyle_find_brand(uint16_t optc, struct gargoyle_opt *opt
for(; optc; optc -= 1, optv += 1) {
const char *idx = brand;
if(optv->type == GARGOYLE_TYPE_BOOL && gargoyle_cmp(idx, "no-", 3, GARGOYLE_CMP_ICASE)) {
if(optv->type & GARGOYLE_TYPE_BOOL && gargoyle_cmp(idx, "no-", 3, GARGOYLE_CMP_ICASE)) {
idx += 3;
}