diff --git a/Cartesian_kernel/include/CGAL/Cartesian/Vector_3.h b/Cartesian_kernel/include/CGAL/Cartesian/Vector_3.h index 034ca73fe1d..444ffe0ac3a 100644 --- a/Cartesian_kernel/include/CGAL/Cartesian/Vector_3.h +++ b/Cartesian_kernel/include/CGAL/Cartesian/Vector_3.h @@ -142,7 +142,7 @@ inline typename R::Boolean operator==(const VectorC3 &v, const VectorC3 &w) { - return w.x() == v.x() && w.y() == v.y() && w.z() == v.z(); + return CGAL_AND_3(w.x() == v.x(), w.y() == v.y(), w.z() == v.z()); } template < class R > @@ -158,8 +158,7 @@ inline typename R::Boolean operator==(const VectorC3 &v, const Null_vector &) { - return CGAL_NTS is_zero(v.x()) && CGAL_NTS is_zero(v.y()) && - CGAL_NTS is_zero(v.z()); + return CGAL_AND_3(CGAL_NTS is_zero(v.x()), CGAL_NTS is_zero(v.y()), CGAL_NTS is_zero(v.z())); } template < class R >