aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/fastmath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fastmath.cpp')
-rw-r--r--test/fastmath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fastmath.cpp b/test/fastmath.cpp
index efdd5b313..438e6b2e5 100644
--- a/test/fastmath.cpp
+++ b/test/fastmath.cpp
@@ -49,7 +49,7 @@ void check_inf_nan(bool dryrun) {
VERIFY( !m.allFinite() );
VERIFY( m.hasNaN() );
}
- m(4) /= 0.0;
+ m(4) /= T(0.0);
if(dryrun)
{
std::cout << "std::isfinite(" << m(4) << ") = "; check((std::isfinite)(m(4)),false); std::cout << " ; numext::isfinite = "; check((numext::isfinite)(m(4)), false); std::cout << "\n";