Skip to content

Commit

Permalink
Fix for #2741:
Browse files Browse the repository at this point in the history
- Fix connector size count for subtypes of basic types.


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@21383 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
perost committed Jul 1, 2014
1 parent 4644d3a commit 8f16a5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Compiler/FrontEnd/ConnectUtil.mo
Expand Up @@ -3684,6 +3684,8 @@ algorithm
// The size of a complex type with an equalityConstraint function is
// determined by the size of the return value of that function.
case (DAE.T_COMPLEX(equalityConstraint = SOME((_, n, _)))) then n;
// The size of a basic subtype is the size of the extended type.
case (DAE.T_SUBTYPE_BASIC(complexType = t)) then sizeOfVariable2(t);
// Anything we forgot?
case t
equation
Expand Down

0 comments on commit 8f16a5d

Please sign in to comment.