mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 14:20:39 +01:00
[poincare/expression] getUnit returns an uninitialized Expression
when there is no Unit instead of Undefined
This commit is contained in:
committed by
Émilie Feral
parent
f5b964339c
commit
0c4434d088
@@ -137,7 +137,7 @@ bool ExpressionNode::isOfType(Type * types, int length) const {
|
||||
}
|
||||
|
||||
Expression ExpressionNode::getUnit() const {
|
||||
return Undefined::Builder();
|
||||
return Expression();
|
||||
}
|
||||
|
||||
void ExpressionNode::setChildrenInPlace(Expression other) {
|
||||
|
||||
Reference in New Issue
Block a user