Skip to content

Commit

Permalink
fix PR #837
Browse files Browse the repository at this point in the history
  • Loading branch information
hkiel authored and OpenModelica-Hudson committed May 18, 2016
1 parent 67e0588 commit c628fac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/EvaluateFunctions.mo
Expand Up @@ -669,7 +669,7 @@ algorithm
if Flags.isSet(Flags.EVAL_FUNC_DUMP) and listEmpty(elements) then
print("Its a Record!\n");
false=true;
elseif Flags.isSet(Flags.EVAL_FUNC_DUMP) and (listLength(protectVars)+listLength(algs)==0) then
elseif Flags.isSet(Flags.EVAL_FUNC_DUMP) and (listEmpty(protectVars) and listEmpty(algs)) then
print("Its a Built-In!\n");
false=true;
end if;
Expand Down Expand Up @@ -2288,7 +2288,7 @@ algorithm
(start,stop,step) := getRangeBounds(range);
true := intEq(step,1);
repl := replIn;
for i in start:stop loop
for i in List.intRange2(start,stop) loop
repl := BackendVarTransform.addReplacement(repl, ComponentReference.makeCrefIdent(iter,DAE.T_INTEGER_DEFAULT,{}),DAE.ICONST(i),NONE());
(stmts,((_,repl,_))) := evaluateFunctions_updateStatement(stmtsIn,(funcTreeIn,repl,i),{});

Expand Down

0 comments on commit c628fac

Please sign in to comment.