]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use explicit return type
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Oct 2021 20:11:32 +0000 (21:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Oct 2021 20:11:32 +0000 (21:11 +0100)
Issue: #3893

src/libserver/css/css_selector.hxx

index 9bab9e61bce20ff6d000e5cb12c9e9071da1aafe..02cb783c40aa5031a9256c6aa3417b7b71274358 100644 (file)
@@ -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);