]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix another `enum` usage in fmt
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 9 Jul 2023 21:41:28 +0000 (22:41 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sun, 9 Jul 2023 21:42:15 +0000 (22:42 +0100)
Issue: #4482

src/libserver/symcache/symcache_item.cxx

index b50d4cae42959d2b86f49e7b5b8ba330935c94ab..1ad113c546044496a0e1ecd8221bffafd6a9a966 100644 (file)
@@ -572,7 +572,7 @@ auto item_type_from_c(enum rspamd_symbol_type type) -> tl::expected<std::pair<sy
                auto check_trivial = [&](auto flag,
                                                                 symcache_item_type ty) -> tl::expected<std::pair<symcache_item_type, int>, std::string> {
                        if (all_but_one_ty(type, flag)) {
-                               return tl::make_unexpected(fmt::format("invalid flags for a symbol: {}", type));
+                               return tl::make_unexpected(fmt::format("invalid flags for a symbol: {}", (int)type));
                        }
 
                        return std::make_pair(ty, type & ~flag);