Skip to content

Commit

Permalink
unify name of iteration variable in ranges to avoid c++ warning about…
Browse files Browse the repository at this point in the history
… changed lookup rules

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25485 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed Apr 10, 2015
1 parent ab7e764 commit 166d96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -10362,8 +10362,8 @@ template daeExpRange(Exp exp, Context context, Text &preExp, Text &varDecls, Sim
*/
let &preExp += 'int <%tmp%>_num_elems =(<%stop_exp%>-<%start_exp%>)/<%step_exp%>+1;
<%tmp%>.setDims(<%tmp%>_num_elems)/*setDims 2*/;
for(int i= 1;i<=<%tmp%>_num_elems;i++)
<%tmp%>(i) =<%start_exp%>+(i-1)*<%step_exp%>;
for (int <%tmp%>_i = 1; <%tmp%>_i <= <%tmp%>_num_elems; <%tmp%>_i++)
<%tmp%>(<%tmp%>_i) = <%start_exp%>+(<%tmp%>_i-1)*<%step_exp%>;
'
'<%tmp%>'
end daeExpRange;
Expand Down

0 comments on commit 166d96b

Please sign in to comment.