[mlpack-git] mlpack-1.0.x: Oops, I didn't actually fix that warning. (fa3e63d)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Jan 7 11:57:03 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/0000000000000000000000000000000000000000...904762495c039e345beba14c1142fd719b3bd50e

>---------------------------------------------------------------

commit fa3e63d989151409a55350526df778f68bfb847f
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Jul 28 17:59:51 2014 +0000

    Oops, I didn't actually fix that warning.


>---------------------------------------------------------------

fa3e63d989151409a55350526df778f68bfb847f
 src/mlpack/methods/emst/dtb_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/emst/dtb_impl.hpp b/src/mlpack/methods/emst/dtb_impl.hpp
index 7cab24d..1a14ad7 100644
--- a/src/mlpack/methods/emst/dtb_impl.hpp
+++ b/src/mlpack/methods/emst/dtb_impl.hpp
@@ -268,7 +268,7 @@ void DualTreeBoruvka<MetricType, TreeType>::CleanupHelper(TreeType* tree)
 
   // Check components of points.
   for (size_t i = 0; i < tree->NumPoints(); ++i)
-    if (connections.Find(tree->Point(i)) != int(component))
+    if (connections.Find(tree->Point(i)) != size_t(component))
       return;
 
   // If we made it this far, all components are the same.



More information about the mlpack-git mailing list