add parantheses to fix compiler warning

This commit is contained in:
Dennis Luxen 2014-05-13 10:22:54 +02:00
parent 21645643b0
commit 2720f4de9c

View File

@ -725,8 +725,8 @@ constexpr double SCALING_FACTOR = 4 / M_PI * 0xFFFF;
inline double atan2_lookup(double y, double x)
{
if ((x > 0.) && (x < std::numeric_limits<double>::epsilon()) ||
(x < 0.) && (x > -std::numeric_limits<double>::epsilon()))
if (((x > 0.) && (x < std::numeric_limits<double>::epsilon())) ||
((x < 0.) && (x > -std::numeric_limits<double>::epsilon())))
{
if (y >= 0.)
{