diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2016-12-15 17:22:12 +0100 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2016-12-15 17:22:12 +0100 |
commit | 4247d35d4b28d0f8ce30a211841a900e98447614 (patch) | |
tree | cb509b645f8d525080109a8006d0ce29c7a051f0 /test/mixingtypes.cpp | |
parent | 642dddcce29269f266d35e34d34ee83d99a7c116 (diff) |
Fixed bug which (extremely rarely) could end in an infinite loop
Diffstat (limited to 'test/mixingtypes.cpp')
-rw-r--r-- | test/mixingtypes.cpp | 2 |
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>(); |