diff --git a/DataStructures/DynamicGraph.h b/DataStructures/DynamicGraph.h index 5c0883119..c5150223e 100644 --- a/DataStructures/DynamicGraph.h +++ b/DataStructures/DynamicGraph.h @@ -178,9 +178,9 @@ class DynamicGraph { #pragma omp atomic --m_numEdges; --node.edges; - BOOST_ASSERT(UINT_MAX != node.edges); + BOOST_ASSERT(std::numeric_limits::max() != node.edges); const unsigned last = node.firstEdge + node.edges; - BOOST_ASSERT( UINT_MAX != last); + BOOST_ASSERT( std::numeric_limits::max() != last); //swap with last edge m_edges[e] = m_edges[last]; makeDummy( last );