diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-26 16:08:40 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-04-26 16:08:40 +0200 |
commit | eff15ef3f15d3fc5692b06c0669f1b758e8d744b (patch) | |
tree | 1eb755f6c107e33595faf1486f194e8ed5f04847 | |
parent | 4a949a9565b08bac24130b36bd677d9d08b7cdc8 (diff) | |
download | px4-firmware-eff15ef3f15d3fc5692b06c0669f1b758e8d744b.tar.gz px4-firmware-eff15ef3f15d3fc5692b06c0669f1b758e8d744b.tar.bz2 px4-firmware-eff15ef3f15d3fc5692b06c0669f1b758e8d744b.zip |
Fix what is looking like a missing cast in CMSIS - the cast within the line would make only halfway sense if this was actually intended as double precision operation
-rw-r--r-- | src/lib/mathlib/CMSIS/Include/arm_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mathlib/CMSIS/Include/arm_math.h b/src/lib/mathlib/CMSIS/Include/arm_math.h index 6f66f9ee3..61d3a3b61 100644 --- a/src/lib/mathlib/CMSIS/Include/arm_math.h +++ b/src/lib/mathlib/CMSIS/Include/arm_math.h @@ -5193,7 +5193,7 @@ void arm_rfft_fast_f32( *pIa = Ialpha;
/* Calculating pIb from Ialpha and Ibeta by equation pIb = -(1/2) * Ialpha + (sqrt(3)/2) * Ibeta */
- *pIb = -0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta;
+ *pIb = (float32_t)-0.5 * Ialpha + (float32_t) 0.8660254039 *Ibeta;
}
|