From 1c459816de04685504bf7f4d058a8878ecdaa9a0 Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Wed, 11 Oct 2023 12:42:02 +0200 Subject: [PATCH] remove stray resize of maxCosts which seems to have been (wrongly) used to init all values of maxCosts to 0 (they are already zero via construction in line 33). Probably a refactoring gone wrong. Fixes #48. --- src/pfaedle/router/Router.tpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pfaedle/router/Router.tpp b/src/pfaedle/router/Router.tpp index 0dcc01a..693f0a4 100644 --- a/src/pfaedle/router/Router.tpp +++ b/src/pfaedle/router/Router.tpp @@ -36,7 +36,6 @@ std::map RouterImpl::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 st;