Skip to content

Commit d6b0efb

Browse files
committed
initialize members of 'loc' instead of the array.
1 parent a40be70 commit d6b0efb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Triangulation_3/include/CGAL/Triangulation_hierarchy_3.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class Triangulation_hierarchy_3
439439

440440
struct locs {
441441
Cell_handle pos;
442-
int li, lj;
442+
int li = -1, lj = -1;
443443
Locate_type lt;
444444
};
445445

@@ -578,7 +578,7 @@ insert_and_give_new_cells(const Point &p, OutputItCells fit, Cell_handle start)
578578
Locate_type lt;
579579
int i, j;
580580
// locate using hierarchy
581-
locs positions[maxlevel] = {-1};
581+
locs positions[maxlevel];
582582
locate(p, lt, i, j, positions, start);
583583
// insert at level 0
584584
Vertex_handle vertex = hierarchy[0]->insert_and_give_new_cells(p,

0 commit comments

Comments
 (0)