From ace8d3da213b24656dca7d529ca6a200b3d9c684 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 21 Sep 2014 18:42:56 +0100 Subject: [PATCH] Fix strict build --- source/bridges-ui/CarlaBridgeUI-VST.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/bridges-ui/CarlaBridgeUI-VST.cpp b/source/bridges-ui/CarlaBridgeUI-VST.cpp index 53d8a9563..96c8a2ed1 100644 --- a/source/bridges-ui/CarlaBridgeUI-VST.cpp +++ b/source/bridges-ui/CarlaBridgeUI-VST.cpp @@ -108,10 +108,10 @@ public: effect->dispatcher(effect, effMainsChanged, 0, 0, nullptr, 0.0f); #if ! VST_FORCE_DEPRECATED - effect->dispatcher(effect, effSetBlockSizeAndSampleRate, 0, bufferSize, nullptr, static_cast(sampleRate)); + effect->dispatcher(effect, effSetBlockSizeAndSampleRate, 0, static_cast(bufferSize), nullptr, static_cast(sampleRate)); #endif effect->dispatcher(effect, effSetSampleRate, 0, 0, nullptr, static_cast(sampleRate)); - effect->dispatcher(effect, effSetBlockSize, 0, bufferSize, nullptr, 0.0f); + effect->dispatcher(effect, effSetBlockSize, 0, static_cast(bufferSize), nullptr, 0.0f); effect->dispatcher(effect, effSetProcessPrecision, 0, kVstProcessPrecision32, nullptr, 0.0f); if (effect->dispatcher(effect, effEditOpen, 0, value, getContainerId(), 0.0f) != 1) @@ -184,7 +184,7 @@ public: void setProgram(const uint32_t index) override { if (effect != nullptr) - effect->dispatcher(effect, effSetProgram, 0, index, nullptr, 0.0f); + effect->dispatcher(effect, effSetProgram, 0, static_cast(index), nullptr, 0.0f); } void setMidiProgram(const uint32_t, const uint32_t) override