aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-30 21:11:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-10-30 21:11:32 +0100
commit6643daaa1c177a4e0635c20eb0b513d077662c81 (patch)
treeec13d7243f1e08dc6cda92938aecfc00b1cf556b /src
parentee7d80050320d2c171ba5c4d5271615476464f97 (diff)
downloadrspamd-6643daaa1c177a4e0635c20eb0b513d077662c81.tar.gz
rspamd-6643daaa1c177a4e0635c20eb0b513d077662c81.zip
[Minor] Use explicit return type
Issue: #3893
Diffstat (limited to 'src')
-rw-r--r--src/libserver/css/css_selector.hxx4
1 files 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);