diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-01-12 13:01:31 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-01-12 13:01:31 +0000 |
commit | 7f881e814f9705c0f65c8c22c0641a6367e03179 (patch) | |
tree | e2256a87716b5131f73253b5c5b680f461c5c1cf /test/sparse.h | |
parent | a4252584ed47b01f4885e45fdc0dd0e4ecd4ce1a (diff) |
another warning fix
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 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++) { |