From 18663784910564d5562d2533907db7aeaeb4e8f6 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Wed, 25 Aug 2021 16:44:11 +0200 Subject: [PATCH] fix warning : enum * float is deprecated --- .../CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h b/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h index 842abf61081..fd268aa6ed8 100644 --- a/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h +++ b/Periodic_3_mesh_3/include/CGAL/Periodic_3_mesh_3/Protect_edges_sizing_field.h @@ -2113,8 +2113,10 @@ insert_balls(const Vertex_handle& vp, curve_index, d_sign) << ")\n"; #endif + const FT sgn = (d_sign == CGAL::POSITIVE) ? 1. + : (d_sign == CGAL::NEGATIVE ? -1. : 0.); const Bare_point new_point = - domain_.construct_point_on_curve(vpp, curve_index, d_sign * d / 2); + domain_.construct_point_on_curve(vpp, curve_index, sgn * d / 2); const int dim = 1; // new_point is on edge const Index index = domain_.index_from_curve_index(curve_index); const FT point_weight = CGAL::square(size_(new_point, dim, index));