From f90143005ac57c08d42e94d765e9f37b4010a26a Mon Sep 17 00:00:00 2001 From: Martin Date: Tue, 2 Jun 2020 12:41:30 +0200 Subject: [PATCH] Fix - arm_math.h: Use the float suffix in arm_clarke_f32 The float suffix replaces the need for a float cast in arm_clarke_f32. This change is necessary to avoid large amount of warnings by arm_math.h when the -Wunsuffixed-float-constants flag is used. And using this compile flag is very reasonable on a processor with 32bit FPU. --- Include/arm_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/arm_math.h b/Include/arm_math.h index 1fdad98d..ad2e4cde 100644 --- a/Include/arm_math.h +++ b/Include/arm_math.h @@ -6061,7 +6061,7 @@ __STATIC_FORCEINLINE q15_t arm_pid_q15( *pIalpha = Ia; /* Calculate pIbeta using the equation, pIbeta = (1/sqrt(3)) * Ia + (2/sqrt(3)) * Ib */ - *pIbeta = ((float32_t) 0.57735026919 * Ia + (float32_t) 1.15470053838 * Ib); + *pIbeta = (0.57735026919f * Ia + 1.15470053838f * Ib); }