Skip to content

Commit 305ab23

Browse files
committed
fix name clash if a Modelica model uses a variable pow (#3268)
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25505 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 9fdfa27 commit 305ab23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Template/CodegenCpp.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11748,7 +11748,7 @@ template daeExpBinary(Operator it, Exp exp1, Exp exp2, Context context, Text &pr
1174811748
case SUB(__) then '(<%e1%> - <%e2%>)'
1174911749
case MUL(__) then '(<%e1%> * <%e2%>)'
1175011750
case DIV(__) then '(<%e1%> / <%e2%>)'
11751-
case POW(__) then 'pow(<%e1%>, <%e2%>)'
11751+
case POW(__) then 'std::pow(<%e1%>, <%e2%>)'
1175211752
case AND(__) then '(<%e1%> && <%e2%>)'
1175311753
case OR(__) then '(<%e1%> || <%e2%>)'
1175411754
case MUL_ARRAY_SCALAR(ty=T_ARRAY(dims=dims)) then

0 commit comments

Comments
 (0)