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 d3891ff75..feb8bc82d 100644
--- a/test/sparse.h
+++ b/test/sparse.h
@@ -96,7 +96,7 @@ initSparse(double density,
std::vector<int>* zeroCoords = 0,
std::vector<int>* nonzeroCoords = 0)
{
- sparseVec.reserve(refVec.size()*density);
+ sparseVec.reserve(int(refVec.size()*density));
sparseVec.setZero();
for(int i=0; i<refVec.size(); i++)
{