Skip to content

Commit

Permalink
- Fix compilation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11984 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Jun 5, 2012
1 parent 1bb2a31 commit 9a78726
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Compiler/FrontEnd/InstUtil.mo
Expand Up @@ -1587,7 +1587,7 @@ algorithm
+& face_str2 +& ">);";

case (InstTypes.FOR_EQUATION(index = index, indexType = ty1,
range = exp1, body = eql))
range = SOME(exp1), body = eql))
equation
ty_str1 = Types.unparseType(ty1);
range_str = ExpressionDump.printExpStr(exp1);
Expand All @@ -1597,6 +1597,16 @@ algorithm
then
res;

case (InstTypes.FOR_EQUATION(index = index, indexType = ty1, range = NONE(), body = eql))
equation
ty_str1 = Types.unparseType(ty1);
range_str = ExpressionDump.printExpStr(exp1);
res = "for {" +& ty_str1 +& "} " +& index +& " loop\n ";
eql_str = stringDelimitList(List.map(eql, printEquation), "\n");
res = res +& eql_str +& "\n end for;\n";
then
res;

else "UNKNOWN EQUATION";
end match;
end printEquation;
Expand Down

0 comments on commit 9a78726

Please sign in to comment.