mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 10:03:34 +08:00
Rename isfinite to is_finite to avoid name conflicts.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace matrix
|
||||
{
|
||||
|
||||
template<typename Type>
|
||||
bool isfinite(Type x) {
|
||||
bool is_finite(Type x) {
|
||||
#if defined (__PX4_NUTTX) || defined (__PX4_QURT)
|
||||
return PX4_ISFINITE(x);
|
||||
#else
|
||||
@@ -25,7 +25,7 @@ bool isfinite(Type x) {
|
||||
template<typename Type>
|
||||
Type wrap_pi(Type x)
|
||||
{
|
||||
if (!isfinite(x)) {
|
||||
if (!is_finite(x)) {
|
||||
return x;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user