fix bug #330: Index to int conversion warning

(transplanted from 8414be739b78b2d750be03d41cb5017325f4ae49
)
This commit is contained in:
Gael Guennebaud 2011-08-23 11:02:10 +02:00
parent fe228fc50b
commit b21f9c3573

View File

@ -262,7 +262,7 @@ void householder_qr_inplace_blocked(MatrixQR& mat, HCoeffs& hCoeffs,
Index blockSize = (std::min)(maxBlockSize,size);
int k = 0;
Index k = 0;
for (k = 0; k < size; k += blockSize)
{
Index bs = (std::min)(size-k,blockSize); // actual size of the block