explicitely converts a Dimension (short int) into a size_t, for removing a warning dev
authorCamille Wormser <camille.wormser@normalesup.org>
Wed, 12 Aug 2009 21:32:38 -0700
branchdev
changeset 163 6cd50e622550
parent 162 eec482c29319
child 164 f7244460f21f
explicitely converts a Dimension (short int) into a size_t, for removing a warning
include/topology/rips.hpp
--- a/include/topology/rips.hpp	Wed Aug 12 07:16:35 2009 -0700
+++ b/include/topology/rips.hpp	Wed Aug 12 21:32:38 2009 -0700
@@ -136,7 +136,7 @@
         functor(s);
     }
 
-    if (current.size() == max_dim + 1)
+    if (current.size() == static_cast<size_t>(max_dim) + 1) 
         return;
 
     rLog(rlRipsDebug,       "Traversing %d vertices", candidates.end() - boost::next(excluded));