commit 6643daa: [Minor] Use explicit return type
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Oct 30 20:14:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-30 21:11:32 +0100
URL: https://github.com/rspamd/rspamd/commit/6643daaa1c177a4e0635c20eb0b513d077662c81 (HEAD -> master)
[Minor] Use explicit return type
Issue: #3893
---
src/libserver/css/css_selector.hxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libserver/css/css_selector.hxx b/src/libserver/css/css_selector.hxx
index 9bab9e61b..02cb783c4 100644
--- a/src/libserver/css/css_selector.hxx
+++ b/src/libserver/css/css_selector.hxx
@@ -106,9 +106,9 @@ namespace std {
template<>
class hash<rspamd::css::css_selector> {
public:
- auto operator() (const rspamd::css::css_selector &sel) const -> auto {
+ auto operator() (const rspamd::css::css_selector &sel) const -> std::size_t {
if (sel.type == rspamd::css::css_selector::selector_type::SELECTOR_TAG) {
- return static_cast<std::uint64_t>(std::get<tag_id_t>(sel.value));
+ return static_cast<std::size_t>(std::get<tag_id_t>(sel.value));
}
else {
const auto &sv = std::get<std::string_view>(sel.value);
More information about the Commits
mailing list