mirror of
https://github.com/c3d/DB48X-on-DM42.git
synced 2024-09-28 03:20:53 +02:00
units: The EvalEq
command should not evaluate dates
The date differences evaluation is expensive, so we should avoid doing it in `EvalEq`. Fixes: #1092 Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
parent
fb71fc145f
commit
0aaf12e23e
1 changed files with 1 additions and 0 deletions
|
@ -565,6 +565,7 @@ COMMAND_BODY(EvalEq)
|
|||
{
|
||||
// We will run programs, do not save stack, etc.
|
||||
settings::PrepareForFunctionEvaluation willEvaluateFunctions;
|
||||
save<bool> nodates(unit::nodates, true);
|
||||
|
||||
expression_g diff = expr->as_difference_for_solve();
|
||||
if (+diff != +expr)
|
||||
|
|
Loading…
Reference in a new issue