1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00

Fixed a harmless compiler warning on MSVC in previous commit

This commit is contained in:
hogliux 2017-07-17 13:03:46 +01:00
parent f0792827a4
commit a47dfc5969

View file

@ -190,8 +190,8 @@ static inline Steinberg::Vst::Speaker getSpeakerType (const AudioChannelSet& set
break;
}
auto channelIndex = static_cast<int> (type) - (static_cast<int> (AudioChannelSet::discreteChannel0) + 6);
return (1 << (channelIndex + 33 /* last speaker in vst layout + 1 */));
auto channelIndex = static_cast<Steinberg::Vst::Speaker> (type) - (static_cast<Steinberg::Vst::Speaker> (AudioChannelSet::discreteChannel0) + 6ull);
return (1ull << (channelIndex + 33ull /* last speaker in vst layout + 1 */));
}
static inline AudioChannelSet::ChannelType getChannelType (Steinberg::Vst::SpeakerArrangement arr, Steinberg::Vst::Speaker type) noexcept