From 5d8b4cb26131508bf3659c01936a1b9d03f4ab54 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 7 May 2014 15:37:22 +0200 Subject: [PATCH] use numeric limits instead of C-style UINT_MAX --- DataStructures/DynamicGraph.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 );