From d09032c44fbdc8771a221388474050af6534fe26 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Thu, 12 Mar 2020 23:47:50 +0100 Subject: [PATCH] Explicit cast to int The value bounds is checked anyway --- vst/SfizzVstProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vst/SfizzVstProcessor.cpp b/vst/SfizzVstProcessor.cpp index a804af43..08e516f6 100644 --- a/vst/SfizzVstProcessor.cpp +++ b/vst/SfizzVstProcessor.cpp @@ -256,7 +256,7 @@ void SfizzVstProcessor::processControllerChanges(Vst::IParameterChanges& pc) switch (id) { default: if (id >= kPidMidiCC0 && id <= kPidMidiCCLast) { - int ccNumber = id - kPidMidiCC0; + auto ccNumber = static_cast(id - kPidMidiCC0); for (uint32 pointIndex = 0; pointIndex < pointCount; ++pointIndex) { if (vq->getPoint(pointIndex, sampleOffset, value) == kResultTrue) synth.cc(sampleOffset, ccNumber, fastRound(value * 127.0));