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

Commit 5e72f06

Browse files
perostOpenModelica-Hudson
authored andcommitted
[NF] Fix ordering of when-branches.
Belonging to [master]: - #2890 - OpenModelica/OpenModelica-testsuite#1111
1 parent 8a20ce0 commit 5e72f06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Compiler/NFFrontEnd/NFInst.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,7 @@ algorithm
26062606
branches := Equation.makeBranch(exp1, eql) :: branches;
26072607
end for;
26082608
then
2609-
Equation.WHEN(branches, makeSource(scodeEq.comment, info));
2609+
Equation.WHEN(listReverse(branches), makeSource(scodeEq.comment, info));
26102610

26112611
case SCode.EEquation.EQ_ASSERT(info = info)
26122612
algorithm

0 commit comments

Comments
 (0)