fix bug #330: Index to int conversion warning

This commit is contained in:
Gael Guennebaud 2011-08-23 11:02:10 +02:00
parent b3f5fbbd9a
commit 8414be739b

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