From 48de810db56b728726ec8b499b9a12c687b53795 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 11 Nov 2018 19:46:42 +0100 Subject: prevent warning --- node/keepdiceexecnode.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node/keepdiceexecnode.cpp') 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 diceList3= diceList.mid(0,m_numberOfDice); + QList diceList3= diceList.mid(0,static_cast(m_numberOfDice)); QList diceList2; for(Die* die : diceList3) @@ -64,12 +64,12 @@ void KeepDiceExecNode::run(ExecutionNode* previous) - if(m_numberOfDice > static_cast(diceList.size())) + if(m_numberOfDice > static_cast(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(m_numberOfDice),-1)) { tmp->setHighlighted(false); } -- cgit v1.2.3-70-g09d2