Skip to content

Commit

Permalink
[NF] Try harder.
Browse files Browse the repository at this point in the history
- Allow FLAT_BINDINGs to repeat when using them with
  ExpressionIterator, to avoid having to create unnecessary arrays.

Belonging to [master]:
  - OpenModelica/OMCompiler#2514
  • Loading branch information
perost authored and OpenModelica-Hudson committed Jun 18, 2018
1 parent b592193 commit 8dca89a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFExpressionIterator.mo
Expand Up @@ -128,7 +128,7 @@ public
then if binding.isEach then EACH_ITERATOR(binding.bindingExp) else fromExp(binding.bindingExp);

case Binding.FLAT_BINDING()
then SCALAR_ITERATOR(binding.bindingExp);
then EACH_ITERATOR(binding.bindingExp);
end match;
end fromBinding;

Expand Down

0 comments on commit 8dca89a

Please sign in to comment.