Skip to content

Commit

Permalink
Issue #1741 ii,jj,kk only generated if used
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Mar 10, 2017
1 parent faa1305 commit a76824b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion casadi/core/function/mx_function.cpp
Expand Up @@ -1067,7 +1067,7 @@ namespace casadi {

void MXFunction::generateBody(CodeGenerator& g) const {
// Temporary variables and vectors
g << "int i, j, k, *ii, *jj, *kk;\n"
g << "int i, j, k;\n"
<< "real_t r, s, t, *rr, *ss, *tt;\n"
<< "const real_t** arg1=arg+" << n_in() << ";\n"
<< "real_t** res1=res+" << n_out() << ";\n";
Expand Down

0 comments on commit a76824b

Please sign in to comment.