fix maybe uninitialized warning

triggered by target Orthogonal_incremental_neighbor_search
This commit is contained in:
Sébastien Loriot 2018-12-06 09:23:06 +01:00
parent cf0909ef51
commit 5a2857d451
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,7 @@ namespace CGAL {
inline FT inline FT
min_coord(int i) const min_coord(int i) const
{ {
CGAL_assume(i<D::value);
CGAL_assertion(lower_.size() != 0); CGAL_assertion(lower_.size() != 0);
return lower_[i]; return lower_[i];
} }
@ -173,6 +174,7 @@ namespace CGAL {
inline FT inline FT
max_coord(int i) const max_coord(int i) const
{ {
CGAL_assume(i<D::value);
return upper_[i]; return upper_[i];
} }