Skip to content

Commit

Permalink
Fixing Path size
Browse files Browse the repository at this point in the history
A user reported an issue on the path size init of the
vector:
phoemur#2
  • Loading branch information
gpaulsen committed Dec 9, 2024
1 parent 89af778 commit 0bba832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hungarian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ hungarian(const Container<Container<T,Args...>>& original,
int path_row_0, path_col_0; //temporary to hold the smallest uncovered value

// Array for the augmenting path algorithm
std::vector<std::vector<int>> path (sz+1, std::vector<int>(2, 0));
std::vector<std::vector<int>> path (2*sz, std::vector<int>(2, 0));

/* Now Work The Steps */
bool done = false;
Expand Down

0 comments on commit 0bba832

Please sign in to comment.