fix out-of-bound warnings

This commit is contained in:
Sébastien Loriot 2023-10-19 11:40:35 +02:00
parent 72c10b8f69
commit 9cefb1a481
1 changed files with 2 additions and 2 deletions

View File

@ -2066,7 +2066,7 @@ Regular_triangulation_3<Gt,Tds,Lds>::
side_of_power_sphere(Cell_handle c, const Weighted_point& p, bool perturb) const
{
CGAL_precondition(dimension() == 3);
int i3;
int i3=3;
if(! c->has_vertex(infinite_vertex(), i3))
{
return Bounded_side(side_of_oriented_power_sphere(c->vertex(0)->point(),
@ -2175,7 +2175,7 @@ side_of_power_circle(Cell_handle c, int i, const Weighted_point& p,
bool perturb) const
{
CGAL_precondition(dimension() >= 2);
int i3 = 5;
int i3 = 3;
if(dimension() == 2)
{
CGAL_precondition(i == 3);