[poincare] Lower the recursion limit on Symbols replacement

The limit is still reasonnable and prevents stack overflows that we do
not handle yet
This commit is contained in:
Léa Saviot
2018-11-26 11:25:32 +01:00
committed by EmilieNumworks
parent 8ef394d440
commit cedcdc2f5f

View File

@@ -259,7 +259,7 @@ protected:
Expression setSign(ExpressionNode::Sign s, Context & context, Preferences::AngleUnit angleUnit);
private:
static constexpr int k_maxSymbolReplacementsCount = 30;
static constexpr int k_maxSymbolReplacementsCount = 10;
static bool sSymbolReplacementsCountLock;
/* Simplification */
Expression deepReduce(Context & context, Preferences::AngleUnit angleUnit, bool replaceSymbols = true);