aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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++)