From 2720f4de9c3f57706b3322926af6096c0f32997c Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Tue, 13 May 2014 10:22:54 +0200 Subject: [PATCH] add parantheses to fix compiler warning --- Util/ComputeAngle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Util/ComputeAngle.h b/Util/ComputeAngle.h index ad1f7cbfa..ade0374b6 100644 --- a/Util/ComputeAngle.h +++ b/Util/ComputeAngle.h @@ -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::epsilon()) || - (x < 0.) && (x > -std::numeric_limits::epsilon())) + if (((x > 0.) && (x < std::numeric_limits::epsilon())) || + ((x < 0.) && (x > -std::numeric_limits::epsilon()))) { if (y >= 0.) {