There is no need to compare addresses, compare iterators directly

Also needed for determinism
This commit is contained in:
Mael Rouxel-Labbé 2018-10-10 10:42:31 +02:00
parent 146fc90a33
commit 592d60ff0d
1 changed files with 3 additions and 3 deletions

View File

@ -2052,11 +2052,11 @@ inline void
Periodic_3_triangulation_3<GT,TDS>::
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) {