commit d0c02ee: [Minor] Fix another `enum` usage in fmt

Vsevolod Stakhov vsevolod at rspamd.com
Sun Jul 9 21:49:03 UTC 2023


Author: Vsevolod Stakhov
Date: 2023-07-09 22:41:28 +0100
URL: https://github.com/rspamd/rspamd/commit/d0c02ee183b67f87a4e4e13fc6dfbf072620b464 (HEAD -> master)

[Minor] Fix another `enum` usage in fmt
Issue: #4482

---
 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 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<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);


More information about the Commits mailing list