[mlpack-git] master: Fix incorrect type. (8cfc6f1)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Mar 7 14:59:46 EST 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/f45c17bc4d70ee5d82bf11a91850a34b814eccff...a69871c4eb63087c825502fd2277565453720568
>---------------------------------------------------------------
commit 8cfc6f1b313d9636e602b9212f74563189fb4ac6
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Mar 7 17:24:23 2016 +0000
Fix incorrect type.
>---------------------------------------------------------------
8cfc6f1b313d9636e602b9212f74563189fb4ac6
.../core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp
index 8a5b88c..c7896c7 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp
@@ -25,7 +25,7 @@ inline size_t RStarTreeDescentHeuristic::ChooseDescentNode(
if (node->Children()[0]->IsLeaf())
{
// If its children are leaf nodes, use minimum overlap to choose.
- double bestIndex = 0;
+ size_t bestIndex = 0;
for (size_t i = 0; i < node->NumChildren(); i++)
{
More information about the mlpack-git
mailing list