From 0db2dd85737c53f4f3cb7d50a6856dbea2c86ad5 Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Tue, 9 Jun 2015 13:08:56 +0200 Subject: [PATCH] sdglinf ring avoid conversion of Sign to bool --- .../Voronoi_vertex_ring_C2.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_ring_C2.h b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_ring_C2.h index 003b9525498..0f3efb7a4cb 100644 --- a/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_ring_C2.h +++ b/Segment_Delaunay_graph_Linf_2/include/CGAL/Segment_Delaunay_graph_Linf_2/Voronoi_vertex_ring_C2.h @@ -597,8 +597,8 @@ private: CGAL_assertion( false ); } CGAL_assertion_code( is_v_computed = true ); - CGAL_assertion( oriented_side_of_line(lq, this->point()) ); - CGAL_assertion( oriented_side_of_line(lr, this->point()) ); + CGAL_assertion( oriented_side_of_line(lq, this->point()) != ZERO ); + CGAL_assertion( oriented_side_of_line(lr, this->point()) != ZERO ); } inline void @@ -852,8 +852,8 @@ private: << ux_ << ' ' << uy_ << ' ' << uz_ << ' ' << Point_2(ux_, uy_, uz_) << std::endl ; ); CGAL_assertion_code( is_v_computed = true ); - CGAL_assertion( oriented_side_of_line(lendp, this->point()) ); - CGAL_assertion( oriented_side_of_line(lnon, this->point()) ); + CGAL_assertion( oriented_side_of_line(lendp, this->point()) != ZERO ); + CGAL_assertion( oriented_side_of_line(lnon, this->point()) != ZERO ); } // both segments are axis-parallel @@ -1528,9 +1528,9 @@ private: compute_sss_bisectors(p, q, r, lines); CGAL_assertion_code( is_v_computed = true ); - CGAL_assertion( oriented_side_of_line(lines[0], this->point()) ); - CGAL_assertion( oriented_side_of_line(lines[1], this->point()) ); - CGAL_assertion( oriented_side_of_line(lines[2], this->point()) ); + CGAL_assertion( oriented_side_of_line(lines[0], this->point()) != ZERO ); + CGAL_assertion( oriented_side_of_line(lines[1], this->point()) != ZERO ); + CGAL_assertion( oriented_side_of_line(lines[2], this->point()) != ZERO ); } }