From: Vsevolod Stakhov Date: Sun, 1 May 2022 11:42:10 +0000 (+0100) Subject: [Minor] Fix flags bitops X-Git-Tag: 3.3~290 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=257cce09f7f43f3b626200c31cac35838c35a253;p=rspamd.git [Minor] Fix flags bitops --- diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index 635dc6324..dbcd66690 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -357,7 +357,7 @@ auto item_type_from_c(enum rspamd_symbol_type type) -> tl::expected auto { - return type & (trivial_types & ~exclude_bit); + return (type & trivial_types) & (trivial_types & ~exclude_bit); }; if (type & trivial_types) {