From fc283298228d458873d5a13aabf773825cea4f43 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 4 Jan 2020 16:33:54 +0100 Subject: [PATCH] Silence an MSVC warning about implicit conversion --- src/sfizz/Config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sfizz/Config.h b/src/sfizz/Config.h index 1651ff3d..3d350c9d 100644 --- a/src/sfizz/Config.h +++ b/src/sfizz/Config.h @@ -55,12 +55,12 @@ namespace config { constexpr int halfCCThreshold { 64 }; constexpr int centPerSemitone { 100 }; constexpr float virtuallyZero { 0.00005f }; - constexpr float fastReleaseDuration { 0.01 }; + constexpr float fastReleaseDuration { 0.01f }; constexpr char defineCharacter { '$' }; constexpr Oversampling defaultOversamplingFactor { Oversampling::x1 }; constexpr float A440 { 440.0 }; constexpr unsigned powerHistoryLength { 16 }; - constexpr float voiceStealingThreshold { 0.00001 }; + constexpr float voiceStealingThreshold { 0.00001f }; constexpr int numCCs { 143 }; constexpr int chunkSize { 1024 }; } // namespace config