From 9bfb93fcee1fe302ec7092049fe8dc842e8ad8c9 Mon Sep 17 00:00:00 2001 From: Scott Bailey Date: Mon, 6 Mar 2023 15:34:09 -0600 Subject: [PATCH] Correct version constraint decode and renable additional testing. --- src/version_constraint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/version_constraint.cpp b/src/version_constraint.cpp index 5452667..ca64ed9 100644 --- a/src/version_constraint.cpp +++ b/src/version_constraint.cpp @@ -45,7 +45,7 @@ inline std::string_view trim(std::string_view s) { auto last = std::find_if(s.rbegin(), s.rend(), [](unsigned char ch) {return !std::isspace(ch);}); // Convert the reverse iter last to the forward iterator containing end using base(). // See: https://en.cppreference.com/w/cpp/iterator/reverse_iterator/base - return std::string_view{first, last.base() - first}; + return std::string_view{first, static_cast(last.base() - first)}; }