diff --git a/src/effects/effectbuttonparameterslot.cpp b/src/effects/effectbuttonparameterslot.cpp index ea376864f75c..0c253b642d4b 100644 --- a/src/effects/effectbuttonparameterslot.cpp +++ b/src/effects/effectbuttonparameterslot.cpp @@ -54,7 +54,10 @@ void EffectButtonParameterSlot::loadEffect(EffectPointer pEffect) { if (m_pEffectParameter) { // Set the number of states - int numStates = math_max(m_pEffectParameter->manifest()->getSteps().size(), 2); + int numStates = math_max( + static_cast( + m_pEffectParameter->manifest()->getSteps().size()), + 2); m_pControlValue->setStates(numStates); //qDebug() << debugString() << "Loading effect parameter" << m_pEffectParameter->name(); double dValue = m_pEffectParameter->getValue();