diff --git a/source/backend/plugin/CarlaPluginInternal.cpp b/source/backend/plugin/CarlaPluginInternal.cpp index 57760624f..e85fcc69f 100644 --- a/source/backend/plugin/CarlaPluginInternal.cpp +++ b/source/backend/plugin/CarlaPluginInternal.cpp @@ -384,7 +384,7 @@ float PluginParameterData::getFinalValueWithMidiDelta(const uint32_t parameterId else { if (delta > 63) - delta = delta - 128; + delta = static_cast(delta - 128); value += (max - min) * (static_cast(delta) / 127.0f); }