From c41f26bf9df870589e12944c9e2e41eb461e21e4 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sat, 14 Mar 2020 23:06:09 +0100 Subject: [PATCH] Long style cast --- src/sfizz/effects/Apan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sfizz/effects/Apan.cpp b/src/sfizz/effects/Apan.cpp index bac37e74..92bf0491 100644 --- a/src/sfizz/effects/Apan.cpp +++ b/src/sfizz/effects/Apan.cpp @@ -90,7 +90,7 @@ namespace fx { case hash("apan_phase"): if (auto value = readOpcode(opc.value, Default::apanPhaseRange)) { float phase = *value / 360.0f; - phase -= (int)phase; + phase -= static_cast(phase); fx->_lfoPhaseOffset = phase; } break; @@ -139,13 +139,13 @@ namespace fx { for (unsigned i = 0; i < nframes; ++i) { float phaseRight = phaseLeft + offset; - phaseRight -= (int)phaseRight; + phaseRight -= static_cast(phaseRight); left[i] = lfo::evaluateAtPhase(phaseLeft); right[i] = lfo::evaluateAtPhase(phaseRight); phaseLeft += frequency * samplePeriod; - phaseLeft -= (int)phaseLeft; + phaseLeft -= static_cast(phaseLeft); } _lfoPhase = phaseLeft;