From 8408e546379e45bade93ff1ab4ea883cefe384f9 Mon Sep 17 00:00:00 2001 From: tpoole Date: Thu, 24 Aug 2017 15:20:14 +0100 Subject: [PATCH] AU: Fixed a compiler warning --- .../format_types/juce_AudioUnitPluginFormat.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;