Skip to content

Commit

Permalink
chore: static_cast to fix sign conversion warning
Browse files Browse the repository at this point in the history
Fixes i686 build. Needed since
rpm-software-management#1703.
  • Loading branch information
evan-goode committed Sep 20, 2024
1 parent 66d57d1 commit e30ca94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdnf5/rpm/package_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ std::vector<std::vector<unsigned int>> kosaraju(const std::vector<std::vector<un
}

if (sccredges.empty()) {
std::vector scc(stack.begin() + s, stack.end());
std::vector scc(stack.begin() + static_cast<std::vector<unsigned int>::difference_type>(s), stack.end());
std::sort(scc.begin(), scc.end());
leaves.emplace_back(std::move(scc));
} else {
Expand Down

0 comments on commit e30ca94

Please sign in to comment.