diff --git a/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h b/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h index 11cbe4f7fd..6117481b75 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h +++ b/modules/juce_audio_processors/format_types/juce_VSTMidiEventList.h @@ -86,7 +86,7 @@ public: if (se->type == kVstSysExType) delete[] se->sysexDump; - se->sysexDump = new char [numBytes]; + se->sysexDump = new char [(size_t) numBytes]; memcpy (se->sysexDump, midiData, (size_t) numBytes); se->type = kVstSysExType;