[mlpack] 22/37: Oops, I didn't actually fix that warning.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Feb 15 19:35:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to tag mlpack-1.0.10
in repository mlpack.

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

    Oops, I didn't actually fix that warning.
---
 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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git



More information about the debian-science-commits mailing list