From d34201ed383dd6694bda43e5a4da40a1feb2d33a Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 22 Oct 2025 15:09:07 +0200 Subject: [PATCH] fix a conversion warning (-1 converted to `std::size_t`) --- .../test/Constrained_triangulation_3/cdt_3_from_off.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp b/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp index 2b2b86d821d..ac650de2225 100644 --- a/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp +++ b/Constrained_triangulation_3/test/Constrained_triangulation_3/cdt_3_from_off.cpp @@ -651,7 +651,9 @@ int merge_facets_region_growing(Mesh& mesh, } } if(!dump_surface_mesh_after_merge_filename.empty()) { - auto [corner_id_map, corner_id_map_ok] = mesh.add_property_map("v:corner_id", -1); + static constexpr auto max_size_t = std::numeric_limits::max(); + auto [corner_id_map, corner_id_map_ok] = + mesh.add_property_map("v:corner_id", max_size_t); assert(corner_id_map_ok); CGAL_USE(corner_id_map_ok); const auto nb_corners = CGAL::Polygon_mesh_processing::detect_corners_of_regions(