From f6ac4dd0d9a94da627226004145b9dd0212a1647 Mon Sep 17 00:00:00 2001 From: Willi Braun Date: Fri, 16 Feb 2018 16:58:42 +0100 Subject: [PATCH] [NF] set index of relations to -1 otherwise it's a zc Belonging to [master]: - OpenModelica/OMCompiler#2213 --- Compiler/NFFrontEnd/NFExpression.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compiler/NFFrontEnd/NFExpression.mo b/Compiler/NFFrontEnd/NFExpression.mo index 4919eb27a6..7eeeea8252 100644 --- a/Compiler/NFFrontEnd/NFExpression.mo +++ b/Compiler/NFFrontEnd/NFExpression.mo @@ -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));