diff --git a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm index 1ef1fc25f2..fc564a3f92 100644 --- a/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm +++ b/modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm @@ -1351,10 +1351,10 @@ private: || event.mEventType == kAudioUnitEvent_BeginParameterChangeGesture || event.mEventType == kAudioUnitEvent_EndParameterChangeGesture) { - auto it = paramIDToIndex.find (event.mArgument.mParameter.mParameterID) + auto it = paramIDToIndex.find (event.mArgument.mParameter.mParameterID); if (it != paramIDToIndex.end()) - paramIndex = it->second; + paramIndex = (int) it->second; if (! isPositiveAndBelow (paramIndex, parameters.size())) return;