From ff78f313abd4839b77f17255b79dd4499bce0512 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 24 Feb 2018 17:06:10 +0100 Subject: -remove warnings --- node/dicerollernode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/dicerollernode.cpp') diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp index 1f501e5..70fd245 100644 --- a/node/dicerollernode.cpp +++ b/node/dicerollernode.cpp @@ -29,7 +29,7 @@ void DiceRollerNode::run(ExecutionNode* previous) { m_errors.insert(NO_DICE_TO_ROLL,QObject::tr("No dice to roll")); } - auto possibleValue = (m_max-m_min)+1; + auto possibleValue = static_cast(abs((m_max-m_min)+1)); //qDebug() << possibleValue; if( possibleValue < m_diceCount && m_unique) { -- cgit v1.2.3-70-g09d2