diff --git a/test/depr/depr.c.headers/math_h.pass.cpp b/test/depr/depr.c.headers/math_h.pass.cpp index 9e93966f..858e1906 100644 --- a/test/depr/depr.c.headers/math_h.pass.cpp +++ b/test/depr/depr.c.headers/math_h.pass.cpp @@ -82,9 +82,9 @@ void test_exp() void test_fabs() { static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - static_assert((std::is_same::value), ""); - assert(fabs(-1) == 1); + static_assert((std::is_same::value), ""); + static_assert((std::is_same::value), ""); + assert(fabs(-1.f) == 1); } void test_floor() diff --git a/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp b/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp index 451fc160..b821109b 100644 --- a/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp +++ b/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp @@ -51,7 +51,7 @@ void test_edges() assert(std::signbit(x[i].real()) == std::signbit(r.real())); assert(std::isnan(r.imag())); } - else if (abs(x[i].real()) == 1 && x[i].imag() == 0) + else if (std::abs(x[i].real()) == 1 && x[i].imag() == 0) { assert(std::isinf(r.real())); assert(std::signbit(x[i].real()) == std::signbit(r.real()));