From 174a1d68e0a373a3a85d1636f15b74d41608f39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Mon, 10 Jun 2024 15:07:25 +0200 Subject: [PATCH] avoid potentially infinite loop --- .../internal/Corefinement/Face_graph_output_builder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h index dd8f2eb307e..5664e2db18e 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/internal/Corefinement/Face_graph_output_builder.h @@ -276,11 +276,11 @@ struct Non_manifold_output_visitor if (vid_not_used.any()){ std::vector free_vids; - for (ID i = vid_not_used.find_first(); + for (auto i = vid_not_used.find_first(); i < vid_not_used.npos; i = vid_not_used.find_next(i)) { - free_vids.push_back(i); + free_vids.push_back(static_cast(i)); } // now reindex the vertices for (auto& p : vid1)