Parenthesis for max and min

This commit is contained in:
Philipp Möller 2015-10-22 16:59:12 +02:00 committed by Sébastien Loriot
parent a8f5e3f867
commit 7c26fcb8b8
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
}