Skip to content

Commit

Permalink
Fixed the function Static.elabBuiltinTranspose2. This function looks …
Browse files Browse the repository at this point in the history
…the same in MathCoreOSMC branch, but the errors with transposition do not appear there. I don't know why.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3995 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Alexey Lebedev committed Apr 6, 2009
1 parent 75d2645 commit b66d08b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Static.mo
Expand Up @@ -2612,7 +2612,8 @@ algorithm
case (elst,indx,dim1)
equation
(indx <= dim1) = true;
(e :: es) = Util.listMap1(elst, Exp.nthArrayExp, indx);
indx_1=indx-1;
(e :: es) = Util.listMap1(elst, Exp.nthArrayExp, indx_1);
tp = Exp.typeof(e);
indx_1 = indx + 1;
rest = elabBuiltinTranspose2(elst, indx_1, dim1);
Expand Down

0 comments on commit b66d08b

Please sign in to comment.