Skip to content

Commit

Permalink
- fix bootstrapper
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20472 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed May 8, 2014
1 parent 6168897 commit 3dd9ea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -2613,7 +2613,7 @@ algorithm
Integer i;
DAE.Subscript sub;
list<DAE.Subscript> rest,lst,val;
case(DAE.WHOLEDIM::rest,{{DAE.INDEX(exp = DAE.ICONST(i))}},_)
case(DAE.WHOLEDIM()::rest,{{DAE.INDEX(exp = DAE.ICONST(i))}},_)
equation
// found a wholedim, replace with value, insert in lst
val = List.first(value);
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/InlineArrayEquations.mo
Expand Up @@ -148,7 +148,7 @@ algorithm
((_, eqns)) = List.threadFold4(ea1, ea2, generateScalarArrayEqns2, source, differentiated, eqKind, DAE.EQUALITY_EXPS(lhs, rhs), (1, inAccEqnLst));
then (eqns, true);

case (BackendDAE.ARRAY_EQUATION(left=lhs as DAE.CREF(componentRef=_), right=rhs, source=source, differentiated=differentiated, kind=eqKind), _) equation
case (BackendDAE.ARRAY_EQUATION(left=DAE.CREF(componentRef=_), right=rhs, source=source, differentiated=differentiated, kind=eqKind), _) equation
// the lhs array is expressed as a cref
BackendDAE.ARRAY_EQUATION(left=lhs, right=rhs, source=source, differentiated=differentiated, kind=eqKind) = inEqn;
true = Expression.isArray(rhs) or Expression.isMatrix(rhs);
Expand Down

0 comments on commit 3dd9ea8

Please sign in to comment.