Skip to content

Commit

Permalink
Add static cast
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonChern committed Oct 9, 2023
1 parent 14e45dd commit 9f7f03b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/algorithms/gfd/egfd_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ bool EGFDValidation::check(CPI& cpi, const graph_t& graph, const GFD& gfd, const
//while (match.at(0).first != match.at(0).second) {
while (true) {
int i = static_cast<int>(core.size()) - 1;
while ((i != core.size()) && (i != -1)) {
while ((i != static_cast<int>(core.size())) && (i != -1)) {
if (match.at(i).first == match.at(i).second) {
std::pair<vertex_t, vertex_t> edge(parent.at(seq.at(i)), seq.at(i));
std::size_t index = std::find(seq.begin(), seq.end(), parent.at(seq.at(i))) - seq.begin();
Expand Down

0 comments on commit 9f7f03b

Please sign in to comment.