mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/calculation] Remove static Expression
This commit is contained in:
@@ -91,8 +91,7 @@ void CalculationStore::tidy() {
|
||||
|
||||
Expression CalculationStore::ansExpression(Context * context) {
|
||||
if (numberOfCalculations() == 0) {
|
||||
static Rational defaultExpression(0);
|
||||
return defaultExpression;
|
||||
return Rational(0);
|
||||
}
|
||||
Calculation * lastCalculation = calculationAtIndex(numberOfCalculations()-1);
|
||||
/* Special case: the exact output is a Store/Equal expression.
|
||||
|
||||
Reference in New Issue
Block a user