From 2096d66b3df56ce9f068babf2ef1fcce18939735 Mon Sep 17 00:00:00 2001 From: SOUHARDYA TOLA Date: Tue, 18 Nov 2025 14:07:23 +0000 Subject: [PATCH] Fix undefined behavior sanitizer casting error --- .../include/CGAL/Arrangement_2/Arrangement_2_iterators.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_2_iterators.h b/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_2_iterators.h index 219c445bdc1..042b3c66f79 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_2_iterators.h +++ b/Arrangement_on_surface_2/include/CGAL/Arrangement_2/Arrangement_2_iterators.h @@ -290,7 +290,7 @@ public: template I_Filtered_iterator (T* p) : - nt (pointer(p)), + nt (reinterpret_cast(p)), iend (nt) {} @@ -314,7 +314,7 @@ public: template I_Filtered_iterator& operator= (const P* p) { - nt = pointer(p); + nt = reinterpret_cast(p); iend =nt; return *this; } @@ -455,7 +455,7 @@ public: template I_Filtered_const_iterator (T* p) : - nt (pointer(p)), + nt (reinterpret_cast(p)), iend (nt) {} @@ -488,7 +488,7 @@ public: template I_Filtered_const_iterator& operator= (const P* p) { - nt = pointer(p); + nt = reinterpret_cast(p); iend =nt; return *this; }