From: Vsevolod Stakhov Date: Sat, 6 Sep 2025 12:56:42 +0000 (+0100) Subject: [Minor] Fix build X-Git-Tag: 3.13.0~6^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fc6c1c37d764cfc8a3bbb23b0db2398cc5e9296;p=thirdparty%2Frspamd.git [Minor] Fix build --- diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 26a105f355..165dd0f14e 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -2127,7 +2127,7 @@ auto html_process_input(struct rspamd_task *task, while (p2 > host && *(p2 - 1) != '.') { p2--; } - std::string etld1_action{p2, host + u->hostlen - p2}; + std::string etld1_action{p2, static_cast(host + u->hostlen - p2)}; if (!hc->first_party_etld1.empty() && !g_ascii_strcasecmp(etld1_action.c_str(), hc->first_party_etld1.c_str())) { hc->features.forms_post_affiliated++; } @@ -2279,7 +2279,7 @@ auto html_process_input(struct rspamd_task *task, while (p2 > h && *(p2 - 1) != '.') { p2--; } - std::string etld1_link{p2, h + host.size() - p2}; + std::string etld1_link{p2, static_cast(h + host.size() - p2)}; if (!g_ascii_strcasecmp(etld1_link.c_str(), hc->first_party_etld1.c_str())) { hc->features.links.same_etld1_links++; }