aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-06-15 09:06:32 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-06-15 09:06:32 +0200
commitc858fb353f90673614da5acc3adac5dd18fdf9fc (patch)
treec805632da2dda94ed20c9eee1180d21a152750bf /test/sparse.h
parent37d367a231382c67db43f897880e0261c0cc2db5 (diff)
fix a few warnings
Diffstat (limited to 'test/sparse.h')
-rw-r--r--test/sparse.h2
1 files changed, 1 insertions, 1 deletions
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<Scalar,Opt2,Index>::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<sparseMat.outerSize(); j++)
{