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:
parent
9ca0873042
commit
ce734b5f7b
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user