diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index db7cd589ae..8758dcf41d 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -837,7 +837,7 @@ public: { auto& pointers = getPointers (Tag{}); - jassert ((int) pointers.size() < buffer.getNumChannels()); + jassert (buffer.getNumChannels() <= static_cast (pointers.capacity())); pointers.resize (jmax (pointers.size(), (size_t) buffer.getNumChannels())); std::copy (buffer.getArrayOfWritePointers(),