Skip to content

Commit

Permalink
[NF] Use correct DAE type for array assignments.
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#2376
  • Loading branch information
perost authored and OpenModelica-Hudson committed Apr 17, 2018
1 parent f6ae791 commit a8f003f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Compiler/NFFrontEnd/NFConvertDAE.mo
Expand Up @@ -772,7 +772,12 @@ algorithm
dty := Type.toDAE(ty);
dlhs := Expression.toDAE(lhs);
drhs := Expression.toDAE(rhs);
daeStmt := DAE.Statement.STMT_ASSIGN(dty, dlhs, drhs, src);

if Type.isArray(ty) then
daeStmt := DAE.Statement.STMT_ASSIGN_ARR(dty, dlhs, drhs, src);
else
daeStmt := DAE.Statement.STMT_ASSIGN(dty, dlhs, drhs, src);
end if;
end if;
end convertAssignment;

Expand Down

0 comments on commit a8f003f

Please sign in to comment.