aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2018-12-08 21:14:43 +0100
committerRenaud G <renaud@rolisteam.org>2018-12-08 21:14:43 +0100
commitbb47c33763d250cc424216a1dd0fedefa80532a3 (patch)
tree3e60a84a8cd963d828299d49256ed6cd7c1bdd6f /node
parentb28b096d2fe3ddfed099ee8cc33c8caa504d7c83 (diff)
parent48de810db56b728726ec8b499b9a12c687b53795 (diff)
downloadOneRoll-bb47c33763d250cc424216a1dd0fedefa80532a3.tar.gz
OneRoll-bb47c33763d250cc424216a1dd0fedefa80532a3.zip
Merge branch 'master' of github.com:Rolisteam/DiceParser
Diffstat (limited to 'node')
-rw-r--r--node/keepdiceexecnode.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp
index 347931d..dbd1591 100644
--- a/node/keepdiceexecnode.cpp
+++ b/node/keepdiceexecnode.cpp
@@ -51,7 +51,7 @@ void KeepDiceExecNode::run(ExecutionNode* previous)
m_numberOfDice = diceList.size() + m_numberOfDice;
}
- QList<Die*> diceList3= diceList.mid(0,m_numberOfDice);
+ QList<Die*> diceList3= diceList.mid(0,static_cast<int>(m_numberOfDice));
QList<Die*> diceList2;
for(Die* die : diceList3)
@@ -64,12 +64,12 @@ void KeepDiceExecNode::run(ExecutionNode* previous)
- if(m_numberOfDice > static_cast<quint64>(diceList.size()))
+ if(m_numberOfDice > static_cast<qint64>(diceList.size()))
{
m_errors.insert(TOO_MANY_DICE,QObject::tr(" You ask to keep %1 dice but the result only has %2").arg(m_numberOfDice).arg(diceList.size()));
}
- for(Die* tmp : diceList.mid(m_numberOfDice,-1))
+ for(Die* tmp : diceList.mid(static_cast<int>(m_numberOfDice),-1))
{
tmp->setHighlighted(false);
}