fix an UBSAN report when `ch` is null

This commit is contained in:
Laurent Rineau 2023-05-04 09:54:40 +02:00
parent c53dfe6986
commit 2434b2437b
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ operator==(Triangulation_simplex_3<TriangulationDataStructure_3> s0,
} }
return false; return false;
case (3): case (3):
return (&(*s0.ch) == &(*s1.ch)); return s0.ch.operator->() == s1.ch.operator->();
} }
CGAL_error(); CGAL_error();
return false; return false;