From e4621c415e05593f0cdd83e56cf350dd25215821 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 Oct 2021 09:46:10 +0100 Subject: [PATCH] [Minor] Add explicit cast --- src/libserver/html/html.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5