mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST3 Host: Fix UB in VST3Parameter implementation
This commit is contained in:
parent
d4d9740037
commit
1d1eda5dd2
1 changed files with 1 additions and 1 deletions
|
|
@ -2182,13 +2182,13 @@ public:
|
|||
const Steinberg::int32 vstParamIndex;
|
||||
const Steinberg::Vst::ParamID paramID;
|
||||
const bool automatable;
|
||||
const bool discrete = getNumSteps() != AudioProcessor::getDefaultNumParameterSteps();
|
||||
const int numSteps = [&]
|
||||
{
|
||||
auto stepCount = getParameterInfo().stepCount;
|
||||
return stepCount == 0 ? AudioProcessor::getDefaultNumParameterSteps()
|
||||
: stepCount + 1;
|
||||
}();
|
||||
const bool discrete = getNumSteps() != AudioProcessor::getDefaultNumParameterSteps();
|
||||
};
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue