mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 21:29:54 +01:00
Use the right overload of std::nextafter in tests
This commit is contained in:
parent
d2d418a9cb
commit
28663fb959
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user