fix a warning in test/sparse.h

This commit is contained in:
Gael Guennebaud 2009-01-12 12:52:36 +00:00
parent 92959aa5f3
commit 484ed3bbe2

View File

@ -58,7 +58,7 @@ initSparse(double density,
std::vector<Vector2i>* zeroCoords = 0, std::vector<Vector2i>* zeroCoords = 0,
std::vector<Vector2i>* nonzeroCoords = 0) std::vector<Vector2i>* nonzeroCoords = 0)
{ {
sparseMat.startFill(refMat.rows()*refMat.cols()*density); sparseMat.startFill(int(refMat.rows()*refMat.cols()*density));
for(int j=0; j<refMat.cols(); j++) for(int j=0; j<refMat.cols(); j++)
{ {
for(int i=0; i<refMat.rows(); i++) for(int i=0; i<refMat.rows(); i++)