]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix two problems with comparing signed and unsigned integers.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Mar 2008 15:49:11 +0000 (15:49 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Mar 2008 15:49:11 +0000 (15:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@15859 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/contrib/boost/include/boost/graph/king_ordering.hpp

index df14056d7abab2583ae6d7a89b7e8577f533a62a..50ce54bd7fe5568127780f2e440ae69d8dd3dc09 100644 (file)
@@ -63,7 +63,7 @@ namespace boost {
         //heap the vertices already there
         std::make_heap(rbegin, rend, boost::bind<bool>(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<signed int>(Qptr->size()));
 
         while(valid && comp((*Qptr)[child_location], (*Qptr)[parent_location])){
           

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.