Skip to content

Commit

Permalink
remove stray resize of maxCosts which seems to have been (wrongly) us…
Browse files Browse the repository at this point in the history
…ed to init all values of maxCosts to 0 (they are already zero via construction in line 33). Probably a refactoring gone wrong. Fixes #48.
  • Loading branch information
patrickbr committed Oct 11, 2023
1 parent c27f8a8 commit 1c45981
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pfaedle/router/Router.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ std::map<size_t, EdgeListHops> RouterImpl<TW>::route(
for (size_t nid = 1; nid < trie->getNds().size(); nid++) {
costsDAG[nid].resize(ecm.at(nid).size(), DBL_INF);
predeDAG[nid].resize(ecm.at(nid).size(), NO_PREDE);
maxCosts.resize(ecm.at(nid).size(), 0);
}

std::stack<size_t> st;
Expand Down

0 comments on commit 1c45981

Please sign in to comment.