From 5bfd8ba23e3bbd1de2367a0689aad5b2d5237ff3 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Tue, 19 Jan 2016 18:00:37 +0100 Subject: [PATCH] Warning fix: missing static_cast --- Point_set_processing_3/include/CGAL/structure_point_set.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Point_set_processing_3/include/CGAL/structure_point_set.h b/Point_set_processing_3/include/CGAL/structure_point_set.h index 8ea1a1c8767..5a6dc243646 100644 --- a/Point_set_processing_3/include/CGAL/structure_point_set.h +++ b/Point_set_processing_3/include/CGAL/structure_point_set.h @@ -883,7 +883,8 @@ namespace internal { const Point& point = m_points[ind]; Point projected = line.projection (point); - std::size_t tab_index = std::sqrt (CGAL::squared_distance (seg[0], projected)) / d_DeltaEdge; + std::size_t tab_index = static_cast(std::sqrt (CGAL::squared_distance (seg[0], projected)) + / d_DeltaEdge); division_tab[tab_index].push_back (ind); }