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:
parent
5b8cf6b932
commit
27a6903cac
13 changed files with 45 additions and 49 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue