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
1c10e0c79b
commit
edddca5ac3
1 changed files with 1 additions and 1 deletions
|
|
@ -2301,13 +2301,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