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

Changed the way isPositiveAndBelow is written to avoid needing to cast the second parameter to an int

This commit is contained in:
jules 2017-09-27 12:24:02 +01:00
parent 5b8cf6b932
commit 27a6903cac
13 changed files with 45 additions and 49 deletions

View file

@ -137,7 +137,7 @@ void DspModulePluginDemoAudioProcessor::process (dsp::ProcessContextReplacing<fl
// The fast tanh can be used instead of std::tanh to reduce the CPU load
auto waveshaperIndex = waveshaperParam->getIndex();
if (isPositiveAndBelow (waveshaperIndex, (int) numWaveShapers) )
if (isPositiveAndBelow (waveshaperIndex, numWaveShapers) )
{
waveShapers[waveshaperIndex].process (waveshaperContext);