From a4c532edff56cba3b3e7dde7b8c081e67135e858 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 15 Nov 2018 09:54:39 +1100 Subject: [PATCH] AP_HAL: fixed typo in fmax macro --- libraries/AP_HAL/AP_HAL_Macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL/AP_HAL_Macros.h b/libraries/AP_HAL/AP_HAL_Macros.h index 742096c266..b62840006c 100644 --- a/libraries/AP_HAL/AP_HAL_Macros.h +++ b/libraries/AP_HAL/AP_HAL_Macros.h @@ -48,7 +48,7 @@ #define ceil(x) DO_NOT_USE_DOUBLE_MATHS() #define floor(x) DO_NOT_USE_DOUBLE_MATHS() #define round(x) DO_NOT_USE_DOUBLE_MATHS() -#define fmax(x) DO_NOT_USE_DOUBLE_MATHS() +#define fmax(x,y) DO_NOT_USE_DOUBLE_MATHS() #if !HAL_WITH_UAVCAN // we should do log() and fabs() as well, but can't because of a conflict in uavcan #define log(x) DO_NOT_USE_DOUBLE_MATHS()