aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-07-02 17:39:07 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-07-02 17:39:07 +0100
commit4041045abc00aa8f8c0ae211b0bf1648ce44029d (patch)
treea8838c4ff0fa686c0149f50974cd2286ba5934dd /src/libutil
parent42873dc11090b0ce0c6f49333a73123fa5de05cb (diff)
downloadrspamd-4041045abc00aa8f8c0ae211b0bf1648ce44029d.tar.gz
rspamd-4041045abc00aa8f8c0ae211b0bf1648ce44029d.zip
[Minor] Try to be more compatible
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/cxx/util.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/cxx/util.hxx b/src/libutil/cxx/util.hxx
index dd8ef0ee6..df8d99b6c 100644
--- a/src/libutil/cxx/util.hxx
+++ b/src/libutil/cxx/util.hxx
@@ -101,7 +101,7 @@ inline auto string_split_on(const S &input, std::string_view::value_type chr) ->
auto pos = std::find(std::begin(input), std::end(input), chr);
if (pos != input.end()) {
- auto first = std::string_view{std::begin(input), pos};
+ auto first = std::string_view{std::begin(input), static_cast<std::size_t>(std::distance(std::begin(input), pos))};
while (*pos == chr && pos != input.end()) {
++pos;
}