aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_basic.cpp
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-11-02 14:33:33 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-11-02 14:33:33 +0100
commitd204ec491d7862eef6a6a2f00a990ec483e5d97d (patch)
tree267a16928ccebac0a8c9974cd29e3858a36610fc /test/sparse_basic.cpp
parent3a3f163e312f292550768314881195eac036ddc4 (diff)
Additional fix to enforce the compiler to use the correct prunning method.
Diffstat (limited to 'test/sparse_basic.cpp')
-rw-r--r--test/sparse_basic.cpp2
1 files changed, 1 insertions, 1 deletions
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<typename SparseMatrixType> 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);
}