From 592d60ff0d76453bf289376c4280e517543c7dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Wed, 10 Oct 2018 10:42:31 +0200 Subject: [PATCH] There is no need to compare addresses, compare iterators directly Also needed for determinism --- .../include/CGAL/Periodic_3_triangulation_3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h b/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h index 8acdb35f190..a0e69862930 100644 --- a/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h +++ b/Periodic_3_triangulation_3/include/CGAL/Periodic_3_triangulation_3.h @@ -2052,11 +2052,11 @@ inline void Periodic_3_triangulation_3:: make_canonical(Vertex_triple& t) const { - int i = (&*(t.first) < &*(t.second))? 0 : 1; + int i = (t.first < t.second) ? 0 : 1; if(i==0) { - i = (&*(t.first) < &*(t.third))? 0 : 2; + i = (t.first < t.third) ? 0 : 2; } else { - i = (&*(t.second) < &*(t.third))? 1 : 2; + i = (t.second < t.third) ? 1 : 2; } Vertex_handle tmp; switch(i) {