diff options
| author | Martin Hořeňovský | 2019-10-13 13:36:22 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-10-13 13:36:22 +0200 |
| commit | 28663fb9594ae60109255625d8e6020a36331105 (patch) | |
| tree | 0e96580b92d3a6ed0d2298724abd7d72718eab22 /projects/SelfTest | |
| parent | d2d418a9cbda255e193c4ed6c57cdf20137fa309 (diff) | |
| download | catch3-28663fb9594ae60109255625d8e6020a36331105.tar.gz | |
Use the right overload of std::nextafter in tests
Diffstat (limited to 'projects/SelfTest')
| -rw-r--r-- | projects/SelfTest/UsageTests/Matchers.tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/SelfTest/UsageTests/Matchers.tests.cpp b/projects/SelfTest/UsageTests/Matchers.tests.cpp index ae05a73c..9917bd78 100644 --- a/projects/SelfTest/UsageTests/Matchers.tests.cpp +++ b/projects/SelfTest/UsageTests/Matchers.tests.cpp @@ -348,7 +348,7 @@ namespace { namespace MatchersTests { auto v1 = std::numeric_limits<float>::min(); auto v2 = v1; for (int i = 0; i < 5; ++i) { - v2 = std::nextafter(v1, 0); + v2 = std::nextafter(v1, 0.f); } REQUIRE_THAT(v1, WithinRel(v2)); } |