From ce734b5f7b6b6e83c97bd2dfb154e3771e9d504b Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Mon, 19 Dec 2016 13:59:44 +0100 Subject: [PATCH] AP_Math: Remove unecessary check --- libraries/AP_Math/AP_Math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/AP_Math.h b/libraries/AP_Math/AP_Math.h index 686cd76b93..4e1399f548 100644 --- a/libraries/AP_Math/AP_Math.h +++ b/libraries/AP_Math/AP_Math.h @@ -34,7 +34,7 @@ template inline bool is_zero(const T fVal1) { static_assert(std::is_floating_point::value || std::is_base_of::value, "Template parameter not of type float"); - return fabsf(static_cast(fVal1)) < FLT_EPSILON ? true : false; + return (fabsf(static_cast(fVal1)) < FLT_EPSILON); } /*