mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 01:00:50 +01:00
[poincare] Fix Ceiling::shallowReduce that added uninitialized nodes
This commit is contained in:
@@ -54,8 +54,11 @@ Expression Ceiling::shallowReduce(Context & context, Preferences::AngleUnit angl
|
||||
if (s.name() == Ion::Charset::Exponential) {
|
||||
result = Rational(3);
|
||||
}
|
||||
replaceWithInPlace(result);
|
||||
return result;
|
||||
if (!result.isUninitialized()) {
|
||||
replaceWithInPlace(result);
|
||||
return result;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
if (c.type() != ExpressionNode::Type::Rational) {
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user