aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/mixingtypes.cpp
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2016-12-15 17:22:12 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2016-12-15 17:22:12 +0100
commit4247d35d4b28d0f8ce30a211841a900e98447614 (patch)
treecb509b645f8d525080109a8006d0ce29c7a051f0 /test/mixingtypes.cpp
parent642dddcce29269f266d35e34d34ee83d99a7c116 (diff)
Fixed bug which (extremely rarely) could end in an infinite loop
Diffstat (limited to 'test/mixingtypes.cpp')
-rw-r--r--test/mixingtypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mixingtypes.cpp b/test/mixingtypes.cpp
index ad9c2c652..b796082cd 100644
--- a/test/mixingtypes.cpp
+++ b/test/mixingtypes.cpp
@@ -69,7 +69,7 @@ template<int SizeAtCompileType> void mixingtypes(int size = SizeAtCompileType)
double epsd = std::sqrt(std::numeric_limits<double>::min EIGEN_EMPTY ());
while(std::abs(sf )<epsf) sf = internal::random<float>();
- while(std::abs(sd )<epsd) sf = internal::random<double>();
+ while(std::abs(sd )<epsd) sd = internal::random<double>();
while(std::abs(scf)<epsf) scf = internal::random<CF>();
while(std::abs(scd)<epsd) scd = internal::random<CD>();