Skip to content

Commit

Permalink
- bugfix expStripLastIdent
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@5758 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Jens Frenkel committed Jun 30, 2010
1 parent 2850de4 commit 0f5c22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Exp.mo
Expand Up @@ -552,13 +552,13 @@ algorithm
Boolean b;
case (DAE.CREF(componentRef=cr))
equation
ty = crefLastType(cr);
cr_1 = crefStripLastIdent(cr);
ty = crefLastType(cr_1);
then DAE.CREF(cr_1,ty);
case (DAE.UNARY(operator=op,exp=e))
equation
ty = typeof(e);
e_1 = expStripLastIdent(e);
ty = typeof(e_1);
b = DAEUtil.expTypeArray(ty);
op1 = Util.if_(b,DAE.UMINUS_ARR(ty),DAE.UMINUS(ty));
then DAE.UNARY(op1,e_1);
Expand Down

0 comments on commit 0f5c22e

Please sign in to comment.