aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-02-24 17:06:10 +0100
committerRenaud G <renaud@rolisteam.org>2018-02-24 17:06:10 +0100
commitff78f313abd4839b77f17255b79dd4499bce0512 (patch)
treebca17428464e6184a34f382bf28b3c3204b16519 /node/dicerollernode.cpp
parent4eeb6ff50f3153c3e139507d99efdf2bc1b9314c (diff)
downloadOneRoll-ff78f313abd4839b77f17255b79dd4499bce0512.tar.gz
OneRoll-ff78f313abd4839b77f17255b79dd4499bce0512.zip
-remove warnings
Diffstat (limited to 'node/dicerollernode.cpp')
-rw-r--r--node/dicerollernode.cpp2
1 files changed, 1 insertions, 1 deletions
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<quint64>(abs((m_max-m_min)+1));
//qDebug() << possibleValue;
if( possibleValue < m_diceCount && m_unique)
{