diff --git a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp index d37800ab5d..bacb94334d 100644 --- a/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_LV2PluginFormat.cpp @@ -1681,7 +1681,7 @@ private: template static SingleSizeAlignedStorage grow (SingleSizeAlignedStorage storage, size_t size) { - if (storage.size() <= size) + if (size <= storage.size()) return storage; SingleSizeAlignedStorage newStorage { jmax (size, (storage.size() * 3) / 2) };