another warning fix

This commit is contained in:
Gael Guennebaud 2009-01-12 13:01:31 +00:00
parent a4252584ed
commit 7f881e814f

View File

@ -96,7 +96,7 @@ initSparse(double density,
std::vector<int>* zeroCoords = 0,
std::vector<int>* nonzeroCoords = 0)
{
sparseVec.reserve(refVec.size()*density);
sparseVec.reserve(int(refVec.size()*density));
sparseVec.setZero();
for(int i=0; i<refVec.size(); i++)
{