Skip to content

Commit 2278f0b

Browse files
committed
- fix rml compilation
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21782 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 2372f3c commit 2278f0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Compiler/FrontEnd/ExpressionSimplify.mo

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5048,11 +5048,13 @@ algorithm
50485048
DAE.Exp arr_exp,foldExp;
50495049
DAE.Type aty,ty2;
50505050
list<DAE.Exp> exps;
5051+
Integer length;
50515052

50525053
case (Absyn.IDENT("array"),_,_,_,_,_,_)
50535054
equation
50545055
aty = Types.unliftArray(Types.expTypetoTypesType(ty));
5055-
ty2 = Types.liftArray(aty, DAE.DIM_INTEGER(listLength(inExps))); // The size can be unknown before the reduction...
5056+
length = listLength(inExps);
5057+
ty2 = Types.liftArray(aty, DAE.DIM_INTEGER(length)); // The size can be unknown before the reduction...
50565058
exp = Expression.makeArray(inExps, ty2, not Types.isArray(aty,{}));
50575059
then exp;
50585060

0 commit comments

Comments
 (0)