From f343c8501b0f74bfd38ad64e803c0f86d4e04ebd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 9 Jul 2021 19:41:43 +1000 Subject: [PATCH] AP_Math: fixed double fill_nanf() --- libraries/AP_Math/AP_Math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/AP_Math.cpp b/libraries/AP_Math/AP_Math.cpp index 3adf1da38a..86bff17b5b 100644 --- a/libraries/AP_Math/AP_Math.cpp +++ b/libraries/AP_Math/AP_Math.cpp @@ -412,7 +412,7 @@ void fill_nanf(float *f, uint16_t count) void fill_nanf(double *f, uint16_t count) { while (count--) { - *f++ = 0; + *f++ = std::numeric_limits::signaling_NaN(); } } #endif