From d2f6836a608d79ffbe8e7b3e1dd1de9c23a674ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Thu, 16 Jan 2025 10:42:21 +0100 Subject: [PATCH] Use CGAL_AND --- Cartesian_kernel/include/CGAL/Cartesian/Vector_3.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 >