Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-13 13:36:22 +0200
committerMartin Hořeňovský2019-10-13 13:36:22 +0200
commit28663fb9594ae60109255625d8e6020a36331105 (patch)
tree0e96580b92d3a6ed0d2298724abd7d72718eab22 /projects
parentd2d418a9cbda255e193c4ed6c57cdf20137fa309 (diff)
downloadcatch3-28663fb9594ae60109255625d8e6020a36331105.tar.gz
Use the right overload of std::nextafter in tests
Diffstat (limited to 'projects')
-rw-r--r--projects/SelfTest/UsageTests/Matchers.tests.cpp2
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));
}