Take advantage of types being bit flags
This commit is contained in:
parent
f019f09a22
commit
b39e377f4f
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue