From 7f881e814f9705c0f65c8c22c0641a6367e03179 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 12 Jan 2009 13:01:31 +0000 Subject: [PATCH] another warning fix --- test/sparse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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* zeroCoords = 0, std::vector* nonzeroCoords = 0) { - sparseVec.reserve(refVec.size()*density); + sparseVec.reserve(int(refVec.size()*density)); sparseVec.setZero(); for(int i=0; i