From 5b85e38f06739ca92dc9fcd3c9ced5ef14ada4e6 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Thu, 2 Nov 2017 15:06:03 +0100 Subject: [PATCH] Fix conversion warning float->size_t --- .../include/CGAL/Shape_detection_3/Efficient_RANSAC.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h index 8109c50a5ff..9a90ffc4329 100644 --- a/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h +++ b/Point_set_shape_detection_3/include/CGAL/Shape_detection_3/Efficient_RANSAC.h @@ -681,9 +681,9 @@ shape. The implementation follows \cgalCite{schnabel2007efficient}. best_candidate->indices_of_assigned_points(); // update generated candidates to reflect removal of points - generated_candidates = std::pow (1.f - (indices_points_best_candidate.size() / - float(m_num_available_points - num_invalid)), 3.f) - * generated_candidates; + generated_candidates = std::size_t(std::pow (1.f - (indices_points_best_candidate.size() / + float(m_num_available_points - num_invalid)), 3.f) + * generated_candidates); //2.3 Remove the points from the subtrees for (std::size_t i = 0;i