From b39e377f4f521b00813de28cefc1dfbba64fc53d Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sun, 19 Jun 2022 11:28:59 -0500 Subject: [PATCH] Take advantage of types being bit flags --- src/sleuth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sleuth.c b/src/sleuth.c index 8666409..d4d6eff 100644 --- a/src/sleuth.c +++ b/src/sleuth.c @@ -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; }