mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
Cast to float for isfinite.
This commit is contained in:
parent
f1968f51d6
commit
67c8c8b331
@ -10,7 +10,7 @@ namespace matrix
|
||||
template<typename Type>
|
||||
Type wrap_pi(Type x)
|
||||
{
|
||||
if (!isfinite(x)) {
|
||||
if (!isfinite(float(x))) {
|
||||
return x;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user