5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-06 07:58:28 -04:00

AP_Math: Remove unecessary check

This commit is contained in:
Pierre Kancir 2016-12-19 13:59:44 +01:00 committed by Francisco Ferreira
parent 9ca0873042
commit ce734b5f7b

View File

@ -34,7 +34,7 @@ template <class T>
inline bool is_zero(const T fVal1) {
static_assert(std::is_floating_point<T>::value || std::is_base_of<T,AP_Float>::value,
"Template parameter not of type float");
return fabsf(static_cast<float>(fVal1)) < FLT_EPSILON ? true : false;
return (fabsf(static_cast<float>(fVal1)) < FLT_EPSILON);
}
/*