From b4e3a2023aff6b6c9bdd89fbccdd590d2e710271 Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Tue, 26 Jul 2022 08:22:19 +0200 Subject: [PATCH] Remove warnings --- .../include/CGAL/Linear_cell_complex_constructors.h | 2 +- .../include/CGAL/Linear_cell_complex_incremental_builder.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Linear_cell_complex/include/CGAL/Linear_cell_complex_constructors.h b/Linear_cell_complex/include/CGAL/Linear_cell_complex_constructors.h index f74d25fbd47..0ee736e905a 100644 --- a/Linear_cell_complex/include/CGAL/Linear_cell_complex_constructors.h +++ b/Linear_cell_complex/include/CGAL/Linear_cell_complex_constructors.h @@ -252,7 +252,7 @@ namespace CGAL { if(! in){ return false; } - B.add_vertex_to_facet(index); + B.add_vertex_to_facet(static_cast(index)); } B.end_facet(); scanner.skip_to_next_facet(i); diff --git a/Linear_cell_complex/include/CGAL/Linear_cell_complex_incremental_builder.h b/Linear_cell_complex/include/CGAL/Linear_cell_complex_incremental_builder.h index 632fe069301..087b3da7944 100644 --- a/Linear_cell_complex/include/CGAL/Linear_cell_complex_incremental_builder.h +++ b/Linear_cell_complex/include/CGAL/Linear_cell_complex_incremental_builder.h @@ -328,7 +328,7 @@ public: DH add_facet(std::initializer_list l) { begin_facet(); - for (std::size_t i:l) + for (size_type i:l) { add_vertex_to_facet(i); } return end_facet(); } @@ -399,7 +399,7 @@ private: DH first_dart; /// First dart of the current face DH prev_dart; /// Prev dart of the current face DH min_dart; /// dart with the min vertex of the current facet. - std::size_t min_vertex, max_vertex; /// min and max indices of vertices of the current face + size_type min_vertex, max_vertex; /// min and max indices of vertices of the current face }; } //namespace CGAL