From 70011cec21c2e81354cf4f6c01c4932109ea2cbb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 16 Sep 2023 16:05:29 +0300 Subject: [PATCH] Tweak some types to work around an MSVC compile error For some reason in release mode MSVC wants to decay the plain arrays to pointers when used in a ternary, which causes the code expecting a reference to an array to not compile. --- core/ambdec.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ambdec.h b/core/ambdec.h index 7f73978..d2133f7 100644 --- a/core/ambdec.h +++ b/core/ambdec.h @@ -41,10 +41,10 @@ struct AmbDecConf { std::unique_ptr Matrix; /* Unused when FreqBands == 1 */ - float LFOrderGain[MaxAmbiOrder+1]{}; + std::array LFOrderGain{}; CoeffArray *LFMatrix; - float HFOrderGain[MaxAmbiOrder+1]{}; + std::array HFOrderGain{}; CoeffArray *HFMatrix; ~AmbDecConf(); -- 2.43.0