Skip to content

Commit

Permalink
Fix for bug #1422:
Browse files Browse the repository at this point in the history
- Fixed incorrect type on ranges when doing type conversion.
- Updated test mosfiles-dassl2/nonConstantParam and added test
  mofiles/SimplifyRangeInCall.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7846 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Feb 2, 2011
1 parent 2d7a8ce commit 005aa88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Types.mo
Expand Up @@ -4033,7 +4033,7 @@ algorithm
(begin_1,_) = typeConvert(begin, ty1, ty2, printFailtrace);
(step_1,_) = typeConvert(step, ty1, ty2, printFailtrace);
(stop_1,_) = typeConvert(stop, ty1, ty2, printFailtrace);
at = elabType(ty0);
at = elabType(ty2);
then
(DAE.RANGE(at,begin_1,SOME(step_1),stop_1),(DAE.T_ARRAY(dim1,ty2),p));

Expand All @@ -4044,7 +4044,7 @@ algorithm
true = Expression.dimensionsKnownAndEqual(dim1, dim2);
(begin_1,_) = typeConvert(begin, ty1, ty2, printFailtrace);
(stop_1,_) = typeConvert(stop, ty1, ty2, printFailtrace);
at = elabType(ty0);
at = elabType(ty2);
then
(DAE.RANGE(at,begin_1,NONE(),stop_1),(DAE.T_ARRAY(dim1,ty2),p));

Expand Down

0 comments on commit 005aa88

Please sign in to comment.