From 1d8bd391b1df4fd2f2f274828db14c9ce695eb8b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 9 Nov 2018 23:47:26 +0100 Subject: fix some warnings --- result/diceresult.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'result/diceresult.cpp') diff --git a/result/diceresult.cpp b/result/diceresult.cpp index 7894b60..c1089dd 100644 --- a/result/diceresult.cpp +++ b/result/diceresult.cpp @@ -114,6 +114,9 @@ qreal DiceResult::getScalarResult() case Die::MINUS: scalar-=tmp->getValue(); break; + case Die::POW: + scalar=static_cast(pow(static_cast(scalar),static_cast(tmp->getValue()))); + break; case Die::DIVIDE: case Die::INTEGER_DIVIDE: if(tmp->getValue()!=0) @@ -135,8 +138,6 @@ qreal DiceResult::getScalarResult() } return scalar; } - - return 0; } Die::ArithmeticOperator DiceResult::getOperator() const -- cgit v1.2.3-70-g09d2