aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/adjoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/adjoint.cpp')
-rw-r--r--test/adjoint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/adjoint.cpp b/test/adjoint.cpp
index 8c6d6e3ac..f553bad02 100644
--- a/test/adjoint.cpp
+++ b/test/adjoint.cpp
@@ -39,7 +39,7 @@ template<typename MatrixType> void adjoint(const MatrixType& m)
RealScalar largerEps = test_precision<RealScalar>();
if (ei_is_same_type<RealScalar,float>::ret)
- largerEps = 1e-3f;
+ largerEps = RealScalar(1e-3f);
MatrixType m1 = MatrixType::Random(rows, cols),
m2 = MatrixType::Random(rows, cols),