From 2b34938257ea2509293ab8ba9b81c4cc7061f702 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 5 Mar 2008 15:49:11 +0000 Subject: [PATCH] Fix two problems with comparing signed and unsigned integers. git-svn-id: https://svn.dealii.org/trunk@15859 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/contrib/boost/include/boost/graph/king_ordering.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deal.II/contrib/boost/include/boost/graph/king_ordering.hpp b/deal.II/contrib/boost/include/boost/graph/king_ordering.hpp index df14056d7a..50ce54bd7f 100644 --- a/deal.II/contrib/boost/include/boost/graph/king_ordering.hpp +++ b/deal.II/contrib/boost/include/boost/graph/king_ordering.hpp @@ -63,7 +63,7 @@ namespace boost { //heap the vertices already there std::make_heap(rbegin, rend, boost::bind(comp, _2, _1)); - int i = 0; + unsigned int i = 0; for(i = index_begin; i != Qptr->size(); ++i){ colors[get(vertex_map, (*Qptr)[i])] = 1; @@ -168,7 +168,7 @@ namespace boost { int parent_location = Qptr->size() - heap_parent_location; bool valid = (heap_parent_location != 0 && child_location > index_begin + offset && - parent_location < Qptr->size()); + parent_location < static_cast(Qptr->size())); while(valid && comp((*Qptr)[child_location], (*Qptr)[parent_location])){ -- 2.39.5