From: Vsevolod Stakhov Date: Sun, 9 Jul 2023 21:41:28 +0000 (+0100) Subject: [Minor] Fix another `enum` usage in fmt X-Git-Tag: 3.6~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0c02ee183b67f87a4e4e13fc6dfbf072620b464;p=rspamd.git [Minor] Fix another `enum` usage in fmt Issue: #4482 --- diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index b50d4cae4..1ad113c54 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -572,7 +572,7 @@ auto item_type_from_c(enum rspamd_symbol_type type) -> tl::expected tl::expected, 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);