Skip to content

Commit

Permalink
- Fixed bug 1241, wrong array index in expanded multidim equation.
Browse files Browse the repository at this point in the history
- Added test case mofiles/ArrayIndex2 to test the fix.
- Updated test case mosfiles/SliceAssignment with bug id.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5998 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Sep 2, 2010
1 parent 4cf9aa2 commit aafe19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/Exp.mo
Expand Up @@ -7033,7 +7033,7 @@ algorithm
Subscript s;
list<Subscript> ss_1,ss;
case ({},_) then {DAE.INDEX(inSubscript)};
case ({DAE.WHOLEDIM()},_) then {DAE.INDEX(inSubscript)};
case (DAE.WHOLEDIM() :: ss,_) then DAE.INDEX(inSubscript) :: ss;
case ({DAE.SLICE(exp = e)},_)
equation
e_1 = simplify1(DAE.ASUB(e,{inSubscript}));
Expand Down

0 comments on commit aafe19f

Please sign in to comment.