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

Commit

Permalink
[NF] Fix Subscript.mergeList.
Browse files Browse the repository at this point in the history
- Fix small mistake in Subscript.mergeList that caused old slices to
  always be added even when replaced.

Belonging to [master]:
  - #2629
  • Loading branch information
perost authored and OpenModelica-Hudson committed Sep 4, 2018
1 parent 6e03b38 commit 9aaad99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFSubscript.mo
Expand Up @@ -760,7 +760,7 @@ public
outSubs := old_sub :: outSubs;
end if;
then
(true, old_sub :: outSubs);
(true, outSubs);

// If the old subscript is :, replace it with the new subscript.
case WHOLE() then (true, new_sub :: outSubs);
Expand Down

0 comments on commit 9aaad99

Please sign in to comment.