Fix logic error

This commit is contained in:
Dianne Skoll
2024-06-03 18:04:10 -04:00
parent 4a7cef4644
commit c5f9ed8541

View File

@@ -332,7 +332,8 @@ static int expr_time_limit_func(int do_set, Value *val)
if (!TopLevel()) {
/* Ignore attempts to set from non-toplevel unless it's
lower than current value */
if (val->v.val <= ExpressionEvaluationTimeLimit) {
if (val->v.val == 0 ||
val->v.val >= ExpressionEvaluationTimeLimit) {
return OK;
}
}