aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-12 12:52:36 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-12 12:52:36 +0000
commit484ed3bbe23445f0cbc0f0890d2a35c3a0723b17 (patch)
tree46787a8228d4654f48c7374430605e51903c8c30 /test/sparse.h
parent92959aa5f36bab970277c93e02f4d1bf5d52a364 (diff)
fix a warning in test/sparse.h
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 310e976f2..d3891ff75 100644
--- a/test/sparse.h
+++ b/test/sparse.h
@@ -58,7 +58,7 @@ initSparse(double density,
std::vector<Vector2i>* zeroCoords = 0,
std::vector<Vector2i>* nonzeroCoords = 0)
{
- sparseMat.startFill(refMat.rows()*refMat.cols()*density);
+ sparseMat.startFill(int(refMat.rows()*refMat.cols()*density));
for(int j=0; j<refMat.cols(); j++)
{
for(int i=0; i<refMat.rows(); i++)