aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2013-07-12 16:40:02 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2013-07-12 16:40:02 +0200
commit7ee378d89da93d2556ba000f59783c4c0e32e9a0 (patch)
tree4223aa456491464498382673b47edda0b5891fe9 /test/sparse.h
parent61c3f55362969ca20d88120f0ca226d3c23668d8 (diff)
Fix various scalar type conversion warnings.
Diffstat (limited to 'test/sparse.h')
-rw-r--r--test/sparse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sparse.h b/test/sparse.h
index 1a5ceb38d..a09c65e5f 100644
--- a/test/sparse.h
+++ b/test/sparse.h
@@ -66,10 +66,10 @@ initSparse(double density,
//sparseMat.reserve(int(refMat.rows()*refMat.cols()*density));
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++)
+ for(Index j=0; j<sparseMat.outerSize(); j++)
{
//sparseMat.startVec(j);
- for(int i=0; i<sparseMat.innerSize(); i++)
+ for(Index i=0; i<sparseMat.innerSize(); i++)
{
int ai(i), aj(j);
if(IsRowMajor)