Skip to content

Commit

Permalink
- Fixed incorrect type when generating if-equation for actualStream.
Browse files Browse the repository at this point in the history
- Added test case streams/ActualStreamCodeGen to test the fix.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@7892 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Feb 9, 2011
1 parent 4798b5a commit c1dcbb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/FrontEnd/ConnectUtil.mo
Expand Up @@ -1549,7 +1549,7 @@ algorithm
case (_, _)
equation
flow_cr = getStreamFlowAssociation(inStreamCref, inSets);
ety = ComponentReference.crefType(inStreamCref);
ety = ComponentReference.crefLastType(flow_cr);
flow_exp = Expression.crefExp(flow_cr);
stream_exp = Expression.crefExp(inStreamCref);
instream_exp = evaluateInStream(inStreamCref, inSets);
Expand Down

0 comments on commit c1dcbb7

Please sign in to comment.