[poincare] fix bug in Parenthesis

Change-Id: Id38f52db8e423a5ef0f5cff0e8151ae6d24976c8
This commit is contained in:
Émilie Feral
2017-09-29 17:43:32 +02:00
parent 71cfc5d861
commit fe5e87fc0d
2 changed files with 1 additions and 2 deletions

View File

@@ -16,7 +16,6 @@ private:
Evaluation<float> * privateEvaluate(SinglePrecision p, Context& context, AngleUnit angleUnit) const override { return templatedEvaluate<float>(context, angleUnit); }
Evaluation<double> * privateEvaluate(DoublePrecision p, Context& context, AngleUnit angleUnit) const override { return templatedEvaluate<double>(context, angleUnit); }
template<typename T> Evaluation<T> * templatedEvaluate(Context& context, AngleUnit angleUnit) const;
Expression * m_operand;
};
}

View File

@@ -20,7 +20,7 @@ Expression * Parenthesis::clone() const {
ExpressionLayout * Parenthesis::privateCreateLayout(FloatDisplayMode floatDisplayMode, ComplexFormat complexFormat) const {
assert(floatDisplayMode != FloatDisplayMode::Default);
assert(complexFormat != ComplexFormat::Default);
return new ParenthesisLayout(m_operand->createLayout(floatDisplayMode, complexFormat));
return new ParenthesisLayout(operand(0)->createLayout(floatDisplayMode, complexFormat));
}
template<typename T>