Use ::min() instead of -::max()

This commit is contained in:
Patrick Niklaus 2015-12-16 19:41:06 +01:00
parent 2defc8e826
commit 0ddd473477

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)
{
auto farthest_distance = -std::numeric_limits<int>::max();
auto farthest_distance = std::numeric_limits<int>::min();
auto next_node = -1;
NodeIDIter next_insert_point;