From c91d16b2c2ec7525fabaed8650ca4b1d61538aea Mon Sep 17 00:00:00 2001 From: JbR <90027771+jbr-smtg@users.noreply.github.com> Date: Wed, 15 Sep 2021 10:29:22 +0200 Subject: [PATCH] Fixing double init values --- Source/DistanceFunctions/arm_chebyshev_distance_f64.c | 2 +- Source/StatisticsFunctions/arm_max_no_idx_f64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/DistanceFunctions/arm_chebyshev_distance_f64.c b/Source/DistanceFunctions/arm_chebyshev_distance_f64.c index 18de2554..899159dd 100644 --- a/Source/DistanceFunctions/arm_chebyshev_distance_f64.c +++ b/Source/DistanceFunctions/arm_chebyshev_distance_f64.c @@ -48,7 +48,7 @@ */ float64_t arm_chebyshev_distance_f64(const float64_t *pA,const float64_t *pB, uint32_t blockSize) { - float64_t diff=0.0f, maxVal,tmpA, tmpB; + float64_t diff=0., maxVal,tmpA, tmpB; tmpA = *pA++; tmpB = *pB++; diff --git a/Source/StatisticsFunctions/arm_max_no_idx_f64.c b/Source/StatisticsFunctions/arm_max_no_idx_f64.c index 52d4b01d..7eca31c5 100644 --- a/Source/StatisticsFunctions/arm_max_no_idx_f64.c +++ b/Source/StatisticsFunctions/arm_max_no_idx_f64.c @@ -50,7 +50,7 @@ void arm_max_no_idx_f64( uint32_t blockSize, float64_t *pResult) { - float64_t maxValue = F32_MIN; + float64_t maxValue = F64_MIN; float64_t newVal; while (blockSize > 0U)