From e895f42f28b42feac2010a83cdf91471997c2633 Mon Sep 17 00:00:00 2001 From: Simon Giraudot Date: Wed, 6 Jan 2021 14:29:37 +0100 Subject: [PATCH] Fix warning, comparing size_t with 0 is always true --- .../Scale_space_reconstruction_3/Alpha_shape_mesher.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h b/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h index 19a20242b28..7cfdb245391 100644 --- a/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h +++ b/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h @@ -265,7 +265,7 @@ public: */ Facet_const_iterator shell_begin( std::size_t shell ) const { - CGAL_assertion( shell >= 0 && shell < _shells.size() ); + CGAL_assertion( shell < _shells.size() ); return _shells[ shell ]; } /// gives an iterator to the first triple in a given shell. @@ -277,7 +277,7 @@ public: */ Facet_iterator shell_begin( std::size_t shell ) { - CGAL_assertion( shell >= 0 && shell < _shells.size() ); + CGAL_assertion( shell < _shells.size() ); return _shells[ shell ]; } @@ -288,7 +288,7 @@ public: */ Facet_const_iterator shell_end( std::size_t shell ) const { - CGAL_assertion( shell >= 0 && shell < _shells.size() ); + CGAL_assertion( shell < _shells.size() ); if( shell == _shells.size()-1 ) return _surface.end(); return _shells[ shell+1 ]; @@ -303,7 +303,7 @@ public: */ Facet_iterator shell_end( std::size_t shell ) { - CGAL_assertion( shell >= 0 && shell < _shells.size() ); + CGAL_assertion( shell < _shells.size() ); if( shell == _shells.size()-1 ) return _surface.end(); return _shells[ shell+1 ];