From f2cd6987deba9f82a9824529bad6de2ab89e0bc6 Mon Sep 17 00:00:00 2001 From: Krzysztof Foltman Date: Mon, 12 Oct 2009 21:57:06 +0100 Subject: [PATCH] + Monosynth: fix type bug that made it impossible to compile with g++ 4.2 --- src/monosynth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monosynth.cpp b/src/monosynth.cpp index 3316025..5fdb993 100644 --- a/src/monosynth.cpp +++ b/src/monosynth.cpp @@ -627,7 +627,7 @@ void monosynth_audio_module::set_frequency() { float detune_scaled = (detune - 1); // * log(freq / 440); if (*params[par_scaledetune] > 0) - detune_scaled *= pow(20.0 / freq, *params[par_scaledetune]); + detune_scaled *= pow(20.0 / freq, (double)*params[par_scaledetune]); float p1 = 1, p2 = 1; if (moddest[moddest_o1detune] != 0) p1 = pow(2.0, moddest[moddest_o1detune] * (1.0 / 1200.0)); -- 2.11.4.GIT