Commit dd99c6db authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[eiquadprog-rt] Fix for nEqCon=0

parent dfba8b2f
......@@ -315,7 +315,9 @@ namespace eiquadprog
for (i = 0; i < nEqCon; i++)
{
START_PROFILER_EIQUADPROG_RT(PROFILE_EIQUADPROG_ADD_EQ_CONSTR_1);
np = CE.row(i);
//np = CE.row(i); // does not compile if nEqCon=0
for(int tmp=0;tmp<nVars;tmp++)
np[tmp]=CE(i,tmp);
compute_d(d, m_J, np);
update_z(z, m_J, d, iq);
update_r(R, r, d, iq);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment