Correctly initialize the min value

This commit is contained in:
Patrick Niklaus 2015-12-16 19:35:12 +01:00
parent c3756f6b58
commit 2defc8e826

View File

@ -125,7 +125,7 @@ std::vector<NodeID> FindRoute(const std::size_t &number_of_locations,
for (std::size_t j = 2; j < component_size; ++j) for (std::size_t j = 2; j < component_size; ++j)
{ {
auto farthest_distance = 0; auto farthest_distance = -std::numeric_limits<int>::max();
auto next_node = -1; auto next_node = -1;
NodeIDIter next_insert_point; NodeIDIter next_insert_point;