mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Fix ExpressionWithoutSymbols
This commit is contained in:
@@ -344,7 +344,8 @@ Expression Expression::ExpressionWithoutSymbols(Expression e, Context & context)
|
||||
while (e.hasReplaceableSymbols(context)) {
|
||||
replacementCount++;
|
||||
if (replacementCount > k_maxSymbolReplacementsCount) {
|
||||
return Expression();
|
||||
e = Expression();
|
||||
break;
|
||||
}
|
||||
e = e.replaceReplaceableSymbols(context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user