diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-06-15 09:06:32 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-06-15 09:06:32 +0200 |
commit | c858fb353f90673614da5acc3adac5dd18fdf9fc (patch) | |
tree | c805632da2dda94ed20c9eee1180d21a152750bf /test/sparse.h | |
parent | 37d367a231382c67db43f897880e0261c0cc2db5 (diff) |
fix a few warnings
Diffstat (limited to 'test/sparse.h')
-rw-r--r-- | test/sparse.h | 2 |
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++) { |