From d204ec491d7862eef6a6a2f00a990ec483e5d97d Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Tue, 2 Nov 2010 14:33:33 +0100 Subject: [PATCH] Additional fix to enforce the compiler to use the correct prunning method. --- test/sparse_basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sparse_basic.cpp b/test/sparse_basic.cpp index ad294fc98..92fff4057 100644 --- a/test/sparse_basic.cpp +++ b/test/sparse_basic.cpp @@ -246,7 +246,7 @@ template void sparse_basic(const SparseMatrixType& re m2.finalize(); VERIFY(countFalseNonZero+countTrueNonZero == m2.nonZeros()); VERIFY_IS_APPROX(m2, refM2); - m2.prune(1); + m2.prune(Scalar(1)); VERIFY(countTrueNonZero==m2.nonZeros()); VERIFY_IS_APPROX(m2, refM2); }