Skip to content

Commit c628fac

Browse files
hkielOpenModelica-Hudson
authored andcommitted
fix PR #837
1 parent 67e0588 commit c628fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/BackEnd/EvaluateFunctions.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ algorithm
669669
if Flags.isSet(Flags.EVAL_FUNC_DUMP) and listEmpty(elements) then
670670
print("Its a Record!\n");
671671
false=true;
672-
elseif Flags.isSet(Flags.EVAL_FUNC_DUMP) and (listLength(protectVars)+listLength(algs)==0) then
672+
elseif Flags.isSet(Flags.EVAL_FUNC_DUMP) and (listEmpty(protectVars) and listEmpty(algs)) then
673673
print("Its a Built-In!\n");
674674
false=true;
675675
end if;
@@ -2288,7 +2288,7 @@ algorithm
22882288
(start,stop,step) := getRangeBounds(range);
22892289
true := intEq(step,1);
22902290
repl := replIn;
2291-
for i in start:stop loop
2291+
for i in List.intRange2(start,stop) loop
22922292
repl := BackendVarTransform.addReplacement(repl, ComponentReference.makeCrefIdent(iter,DAE.T_INTEGER_DEFAULT,{}),DAE.ICONST(i),NONE());
22932293
(stmts,((_,repl,_))) := evaluateFunctions_updateStatement(stmtsIn,(funcTreeIn,repl,i),{});
22942294

0 commit comments

Comments
 (0)