From 3db48cd98e8253ae93b8f792c225691678c77d2f Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Tue, 16 Jan 2018 08:54:12 +0100 Subject: [PATCH] Fix windows warning --- .../Classification/internal/auxiliary/random-forest/forest.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classification/include/CGAL/Classification/internal/auxiliary/random-forest/forest.hpp b/Classification/include/CGAL/Classification/internal/auxiliary/random-forest/forest.hpp index a419baf7953..4d22c2bb36b 100644 --- a/Classification/include/CGAL/Classification/internal/auxiliary/random-forest/forest.hpp +++ b/Classification/include/CGAL/Classification/internal/auxiliary/random-forest/forest.hpp @@ -133,7 +133,7 @@ public: } int evaluate(FeatureType const* sample, float* results) { // initialize output probabilities to 0 - std::fill_n(results, params.n_classes, 0); + std::fill_n(results, params.n_classes, 0.0f); // accumulate votes of the trees for (size_t i_tree = 0; i_tree < trees.size(); ++i_tree) { float const* tree_result = trees[i_tree].evaluate(sample);