fix warning with gcc 4.3

This commit is contained in:
Gael Guennebaud 2010-06-10 10:59:06 +02:00
parent dad19c4173
commit d2779a1a8e

View File

@ -70,7 +70,7 @@ void ei_qrsolv(
/* solve the triangular system for z. if the system is */
/* singular, then obtain a least squares solution. */
Index nsing;
for (nsing=0; nsing<n && sdiag[nsing]!=0; nsing++);
for(nsing=0; nsing<n && sdiag[nsing]!=0; nsing++) {}
wa.tail(n-nsing).setZero();
s.topLeftCorner(nsing, nsing).transpose().template triangularView<Upper>().solveInPlace(wa.head(nsing));