From 754c4cdbe72e7a9ee2e23c0494b635dae96674a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Mon, 18 Oct 2021 00:12:50 +0200 Subject: [PATCH] Add a static cast to math_max to make it work with the changed size type in Qt6 --- src/effects/effectbuttonparameterslot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();