From 2cd718a0e775fe95f4f6eb2afae927f2f812fdfe Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Wed, 14 Feb 2024 09:36:15 +0100 Subject: [PATCH] Use a signed type for the index value -1 is used --- .../include/CGAL/TDS_full_cell_mirror_storage_policy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Triangulation/include/CGAL/TDS_full_cell_mirror_storage_policy.h b/Triangulation/include/CGAL/TDS_full_cell_mirror_storage_policy.h index 748e82286e9..63176f5ed30 100644 --- a/Triangulation/include/CGAL/TDS_full_cell_mirror_storage_policy.h +++ b/Triangulation/include/CGAL/TDS_full_cell_mirror_storage_policy.h @@ -30,7 +30,7 @@ struct TFC_data< Vertex_handle, Full_cell_handle, Maximal_dimension, TDS_full_ typedef TFC_data< Vertex_handle, Full_cell_handle, Maximal_dimension, TDS_full_cell_default_storage_policy > Base; typedef typename Base::Vertex_handle_array Vertex_handle_array; typedef typename Base::Full_cell_handle_array Full_cell_handle_array; - typedef typename internal::S_or_D_array< std::uint_least8_t, typename Base::Dimen_plus > Int_array; + typedef typename internal::S_or_D_array< std::int_least8_t, typename Base::Dimen_plus > Int_array; private: Int_array mirror_vertices_; @@ -42,7 +42,7 @@ public: void set_mirror_index(const int i, const int index) { - mirror_vertices_[i] = static_cast(index); + mirror_vertices_[i] = static_cast(index); } int mirror_index(const int i) const {