From: Vsevolod Stakhov Date: Thu, 21 Oct 2021 08:46:10 +0000 (+0100) Subject: [Minor] Add explicit cast X-Git-Tag: 3.1~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e4621c415e05593f0cdd83e56cf350dd25215821;p=rspamd.git [Minor] Add explicit cast --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 1dd980b77..67adac9bc 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -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); }