diff options
-rw-r--r-- | src/libutil/cxx/util.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/cxx/util.hxx b/src/libutil/cxx/util.hxx index df8d99b6c..2d009c6cd 100644 --- a/src/libutil/cxx/util.hxx +++ b/src/libutil/cxx/util.hxx @@ -105,7 +105,7 @@ inline auto string_split_on(const S &input, std::string_view::value_type chr) -> while (*pos == chr && pos != input.end()) { ++pos; } - auto last = std::string_view{pos, std::end(input)}; + auto last = std::string_view{pos, static_cast<std::size_t>(std::distance(pos, std::end(input)))}; return {first, last}; } |