From 65ee3ec117e9b0d58d045f8ecd6bd505cc0e06e7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 8 Oct 2019 12:37:19 +0100 Subject: [PATCH] [Minor] Use unsigned to store flags not enum --- src/libserver/cfg_file.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 71d059873..f22b0cefc 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -105,11 +105,11 @@ enum lua_var_type { }; enum rspamd_symbol_group_flags { - RSPAMD_SYMBOL_GROUP_NORMAL = 0, - RSPAMD_SYMBOL_GROUP_DISABLED = (1 << 0), - RSPAMD_SYMBOL_GROUP_ONE_SHOT = (1 << 1), - RSPAMD_SYMBOL_GROUP_UNGROUPED = (1 << 2), - RSPAMD_SYMBOL_GROUP_PUBLIC = (1 << 3), + RSPAMD_SYMBOL_GROUP_NORMAL = 0u, + RSPAMD_SYMBOL_GROUP_DISABLED = (1u << 0u), + RSPAMD_SYMBOL_GROUP_ONE_SHOT = (1u << 1u), + RSPAMD_SYMBOL_GROUP_UNGROUPED = (1u << 2u), + RSPAMD_SYMBOL_GROUP_PUBLIC = (1u << 3u), }; /** @@ -121,7 +121,7 @@ struct rspamd_symbols_group { gchar *description; GHashTable *symbols; gdouble max_score; - enum rspamd_symbol_group_flags flags; + guint flags; }; enum rspamd_symbol_flags { -- 2.39.5