diff options
| -rw-r--r-- | node/scalaroperatornode.cpp | 8 | ||||
| -rw-r--r-- | node/scalaroperatornode.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/node/scalaroperatornode.cpp b/node/scalaroperatornode.cpp index 1c8ce4e..46c13c9 100644 --- a/node/scalaroperatornode.cpp +++ b/node/scalaroperatornode.cpp @@ -109,15 +109,15 @@ void ScalarOperatorNode::setInternalNode(ExecutionNode* node) { m_internalNode = node; } -qint64 ScalarOperatorNode::add(qint64 a,qint64 b) +qint64 ScalarOperatorNode::add(qreal a,qreal b) { return a+b; } -qint64 ScalarOperatorNode::substract(qint64 a,qint64 b) +qint64 ScalarOperatorNode::substract(qreal a,qreal b) { return a-b; } -qreal ScalarOperatorNode::divide(qint64 a,qint64 b) +qreal ScalarOperatorNode::divide(qreal a,qreal b) { if(b==0) { @@ -126,7 +126,7 @@ qreal ScalarOperatorNode::divide(qint64 a,qint64 b) } return (qreal)a/b; } -qint64 ScalarOperatorNode::multiple(qint64 a,qint64 b) +qint64 ScalarOperatorNode::multiple(qreal a,qreal b) { return a*b; } diff --git a/node/scalaroperatornode.h b/node/scalaroperatornode.h index 0855a4c..f17f99f 100644 --- a/node/scalaroperatornode.h +++ b/node/scalaroperatornode.h @@ -99,22 +99,22 @@ private: * @brief add * @return */ - static qint64 add(qint64,qint64); + static qint64 add(qreal,qreal); /** * @brief substract * @return */ - static qint64 substract(qint64,qint64); + static qint64 substract(qreal,qreal); /** * @brief divide not static because of error management * @return */ - qreal divide(qint64,qint64); + qreal divide(qreal,qreal); /** * @brief multiple * @return */ - static qint64 multiple(qint64,qint64); + static qint64 multiple(qreal,qreal); private: ExecutionNode* m_internalNode; |