From 53f6325fde3a5735b2c9910e56396093fab8a112 Mon Sep 17 00:00:00 2001 From: Jatin Chowdhury Date: Sat, 3 Jun 2023 15:53:10 -0700 Subject: [PATCH] Fix compilation errors with gccarmnoneeabi --- include/chowdsp_wdf/math/omega.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/chowdsp_wdf/math/omega.h b/include/chowdsp_wdf/math/omega.h index 6d77b2d..5ecb4cf 100644 --- a/include/chowdsp_wdf/math/omega.h +++ b/include/chowdsp_wdf/math/omega.h @@ -26,6 +26,7 @@ #define OMEGA_H_INCLUDED #include +#include #include "sample_type.h" namespace chowdsp @@ -216,7 +217,7 @@ namespace Omega template <> CHOWDSP_WDF_MAYBE_UNUSED constexpr double exp_approx (double x) { - x = std::max (-126.0, 1.442695040888963 * x); + x = std::max ((double) -126.0, 1.442695040888963 * x); union {