[poincare] Fix SquareRoot layout creation.

Change-Id: I9985735a5a00b1acf14993996f63be5dc91d9c14
This commit is contained in:
Léa Saviot
2018-01-26 15:03:47 +01:00
parent 8f17807fc1
commit fa1dcbf434

View File

@@ -52,7 +52,7 @@ Expression * SquareRoot::shallowReduce(Context& context, AngleUnit angleUnit) {
ExpressionLayout * SquareRoot::privateCreateLayout(FloatDisplayMode floatDisplayMode, ComplexFormat complexFormat) const {
assert(floatDisplayMode != FloatDisplayMode::Default);
assert(complexFormat != ComplexFormat::Default);
return new NthRootLayout(operand(0)->createLayout(floatDisplayMode, complexFormat), nullptr, false);
return new NthRootLayout(operand(0)->createLayout(floatDisplayMode, complexFormat), false);
}
}