Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Correct version constraint decode and renable additional testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottBailey committed Mar 6, 2023
1 parent f617a17 commit 9bfb93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/version_constraint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string_view::size_type>(last.base() - first)};
}


Expand Down

0 comments on commit 9bfb93f

Please sign in to comment.