From 4bcc59a2ab623660df063bc7ce4c191cafe5290d Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 29 Dec 2021 02:13:19 +0000 Subject: [PATCH] Silent a compiler warning Signed-off-by: falkTX --- distrho/src/DistrhoPluginVST3.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index 924429d0..6714ac5b 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -1427,20 +1427,20 @@ public: #endif } -#if DISTRHO_PLUGIN_WANT_MIDI_INPUT + #if DISTRHO_PLUGIN_WANT_MIDI_INPUT if (rindex < kVst3InternalParameterCount) { const uint32_t index = static_cast(rindex - kVst3InternalParameterMidiCC_start); info->flags = V3_PARAM_CAN_AUTOMATE | V3_PARAM_IS_HIDDEN; info->step_count = 127; char ccstr[24]; - snprintf(ccstr, sizeof(ccstr)-1, "MIDI Ch. %d CC %d", index / 130 + 1, index % 130); + snprintf(ccstr, sizeof(ccstr)-1, "MIDI Ch. %d CC %d", static_cast(index / 130) + 1, index % 130); strncpy_utf16(info->title, ccstr, 128); snprintf(ccstr, sizeof(ccstr)-1, "Ch.%d CC%d", index / 130 + 1, index % 130); strncpy_utf16(info->short_title, ccstr+5, 128); return V3_OK; } -#endif + #endif const uint32_t index = static_cast(rindex - kVst3InternalParameterCount); DISTRHO_SAFE_ASSERT_UINT_RETURN(index < fParameterCount, index, V3_INVALID_ARG);