replace UINT_MAX with proper numeric limits call

This commit is contained in:
Dennis Luxen 2014-05-05 16:34:22 +02:00
parent 5b22dffa6f
commit 7bf74c0917

View File

@ -198,7 +198,7 @@ class BinaryHeap
void DecreaseKey(NodeID node, Weight weight)
{
BOOST_ASSERT(UINT_MAX != node);
BOOST_ASSERT(std::numeric_limits<NodeID>::max() != node);
const Key &index = node_index[node];
Key &key = inserted_nodes[index].key;
BOOST_ASSERT(key >= 0);