From 02b2120bb3fb7625c7964db7b3b8284ebc0933e1 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 6 Oct 2020 22:21:05 +0200 Subject: Fix arithmetic priority for pow --- node/scalaroperatornode.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'node') diff --git a/node/scalaroperatornode.cpp b/node/scalaroperatornode.cpp index dc84c52..268d6b8 100644 --- a/node/scalaroperatornode.cpp +++ b/node/scalaroperatornode.cpp @@ -198,6 +198,10 @@ qint64 ScalarOperatorNode::getPriority() const { return 1; } + else if(m_arithmeticOperator == Die::POW) + { + return 3; + } else { return 2; -- cgit v1.2.3-70-g09d2