commit e4621c4: [Minor] Add explicit cast
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Oct 21 08:49:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-10-21 09:46:10 +0100
URL: https://github.com/rspamd/rspamd/commit/e4621c415e05593f0cdd83e56cf350dd25215821 (HEAD -> master)
[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);
}
More information about the Commits
mailing list