From b03d9fe987a2a45e19861f103c4b9e830ff30f27 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 7 Aug 2014 11:47:36 +0200 Subject: [PATCH] replace INT_MAX by proper typedef --- Contractor/Prepare.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Contractor/Prepare.cpp b/Contractor/Prepare.cpp index a07644914..dcea1fad2 100644 --- a/Contractor/Prepare.cpp +++ b/Contractor/Prepare.cpp @@ -213,8 +213,8 @@ int Prepare::Process(int argc, char *argv[]) hsgr_output_stream.write((char *)&fingerprint_orig, sizeof(FingerPrint)); for (const QueryEdge &edge : contracted_edge_list) { - BOOST_ASSERT(UINT_MAX != edge.source); - BOOST_ASSERT(UINT_MAX != edge.target); + BOOST_ASSERT(SPECIAL_NODEID != edge.source); + BOOST_ASSERT(SPECIAL_NODEID != edge.target); max_used_node_id = std::max(max_used_node_id, edge.source); max_used_node_id = std::max(max_used_node_id, edge.target);