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

Commit 3afa6f7

Browse files
vwaurichOpenModelica-Hudson
authored andcommitted
remove duplicated relation checking for cpp codegen, fixes relations using iterators
Belonging to [master]: - #2486
1 parent 84be5a9 commit 3afa6f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Compiler/Template/CodegenCppCommon.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,16 +2429,16 @@ match rel.optionExpisASUB
24292429
else
24302430
match rel.operator
24312431
case LESS(__) then
2432-
'getCondition(<%rel.index%>) && (<%e1%> < <%e2%>)'
2432+
'(<%e1%> < <%e2%>)'
24332433

24342434
case LESSEQ(__) then
2435-
'getCondition(<%rel.index%>) && (<%e1%> <= <%e2%>)'
2435+
'(<%e1%> <= <%e2%>)'
24362436

24372437
case GREATER(__) then
2438-
'getCondition(<%rel.index%>) && (<%e1%> > <%e2%>)'
2438+
'(<%e1%> > <%e2%>)'
24392439

24402440
case GREATEREQ(__) then
2441-
'getCondition(<%rel.index%>) && (<%e1%> >= <%e2%>)'
2441+
'(<%e1%> >= <%e2%>)'
24422442
end match
24432443
end daeExpRelation;
24442444

0 commit comments

Comments
 (0)