From c858fb353f90673614da5acc3adac5dd18fdf9fc Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 15 Jun 2012 09:06:32 +0200 Subject: fix a few warnings --- test/sparse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sparse.h') diff --git a/test/sparse.h b/test/sparse.h index 84cd695f2..860d9ad9c 100644 --- a/test/sparse.h +++ b/test/sparse.h @@ -79,7 +79,7 @@ initSparse(double density, enum { IsRowMajor = SparseMatrix::IsRowMajor }; sparseMat.setZero(); //sparseMat.reserve(int(refMat.rows()*refMat.cols()*density)); - sparseMat.reserve(VectorXi::Constant(IsRowMajor ? refMat.rows() : refMat.cols(), (1.5*density)*(IsRowMajor?refMat.cols():refMat.rows()))); + sparseMat.reserve(VectorXi::Constant(IsRowMajor ? refMat.rows() : refMat.cols(), int((1.5*density)*(IsRowMajor?refMat.cols():refMat.rows())))); for(int j=0; j