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); } /*