]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add explicit cast
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Oct 2021 08:46:10 +0000 (09:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 21 Oct 2021 08:46:10 +0000 (09:46 +0100)
src/libserver/html/html.cxx

index 1dd980b77d79eff269cfdcddd2c0f2549a1bd26d..67adac9bceb127d45e67b3d5f5fbdb9757fd629a 100644 (file)
@@ -1266,7 +1266,7 @@ html_append_tag_content(rspamd_mempool_t *pool,
                if (tag->id == Tag_A) {
                        auto written_len = hc->parsed.size() - initial_parsed_offset;
                        html_process_displayed_href_tag(pool, hc,
-                                       {hc->parsed.data() + initial_parsed_offset, written_len},
+                                       {hc->parsed.data() + initial_parsed_offset, std::size_t(written_len)},
                                        tag, exceptions,
                                        url_set, initial_parsed_offset);
                }