Use the right overload of std::nextafter in tests

This commit is contained in:
Martin Hořeňovský 2019-10-13 13:36:22 +02:00
parent d2d418a9cb
commit 28663fb959
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -348,7 +348,7 @@ namespace { namespace MatchersTests {
auto v1 = std::numeric_limits<float>::min(); auto v1 = std::numeric_limits<float>::min();
auto v2 = v1; auto v2 = v1;
for (int i = 0; i < 5; ++i) { for (int i = 0; i < 5; ++i) {
v2 = std::nextafter(v1, 0); v2 = std::nextafter(v1, 0.f);
} }
REQUIRE_THAT(v1, WithinRel(v2)); REQUIRE_THAT(v1, WithinRel(v2));
} }