From 7c26fcb8b8512c010586edda1e2cb8dac9c121c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20M=C3=B6ller?= Date: Thu, 22 Oct 2015 16:59:12 +0200 Subject: [PATCH] Parenthesis for max and min --- AABB_tree/include/CGAL/AABB_traits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AABB_tree/include/CGAL/AABB_traits.h b/AABB_tree/include/CGAL/AABB_traits.h index 296949a7d46..20b228cd744 100644 --- a/AABB_tree/include/CGAL/AABB_traits.h +++ b/AABB_tree/include/CGAL/AABB_traits.h @@ -320,8 +320,8 @@ public: FT t1 = (box.min(i) - ray.source()[i]) / ray.direction().delta(i); FT t2 = (box.max(i) - ray.source()[i]) / ray.direction().delta(i); - t_near = std::max(t_near, std::min(t1, t2)); - t_far = std::min(t_far, std::max(t1, t2)); + t_near = (std::max)(t_near, (std::min)(t1, t2)); + t_far = (std::min)(t_far, (std::max)(t1, t2)); } }