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

Commit

Permalink
[NF] set index of relations to -1 otherwise it's a zc
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - #2213
  • Loading branch information
Willi Braun authored and OpenModelica-Hudson committed Feb 16, 2018
1 parent 7b8186a commit f6ac4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/NFFrontEnd/NFExpression.mo
Expand Up @@ -874,7 +874,7 @@ public
then DAE.LUNARY(Operator.toDAE(exp.operator), toDAE(exp.exp));

case RELATION()
then DAE.RELATION(toDAE(exp.exp1), Operator.toDAE(exp.operator), toDAE(exp.exp2), 0, NONE());
then DAE.RELATION(toDAE(exp.exp1), Operator.toDAE(exp.operator), toDAE(exp.exp2), -1, NONE());

case IF()
then DAE.IFEXP(toDAE(exp.condition), toDAE(exp.trueBranch), toDAE(exp.falseBranch));
Expand Down

0 comments on commit f6ac4dd

Please sign in to comment.