From 257cce09f7f43f3b626200c31cac35838c35a253 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 1 May 2022 12:42:10 +0100 Subject: [PATCH] [Minor] Fix flags bitops --- src/libserver/symcache/symcache_item.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5