Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit e844e3a

Browse files
Fix for ticket:4527
Fixed wrong array dimension in a state machine semantic equation.
1 parent 50d02d9 commit e844e3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/FrontEnd/StateMachineFlatten.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1637,7 +1637,7 @@ algorithm
16371637

16381638
// Boolean stateMachineInFinalState = finalStates[activeState];
16391639
exp := DAE.CREF(stateMachineInFinalStateRef, DAE.T_BOOL_DEFAULT);
1640-
rhs := DAE.CREF(qCref("finalStates", tArrayBool, {DAE.INDEX(DAE.CREF(activeStateRef,DAE.T_INTEGER_DEFAULT))}, preRef), DAE.T_BOOL_DEFAULT);
1640+
rhs := DAE.CREF(qCref("finalStates", nStatesArrayBool, {DAE.INDEX(DAE.CREF(activeStateRef,DAE.T_INTEGER_DEFAULT))}, preRef), DAE.T_BOOL_DEFAULT);
16411641
eqs := DAE.EQUATION(exp, rhs, DAE.emptyElementSource) :: eqs;
16421642

16431643
// Now return the semantics equations of the flat state machine and associated variables and parameters

0 commit comments

Comments
 (0)