summaryrefslogtreecommitdiffstats
path: root/libcxx/test/numerics
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-03-06 16:27:17 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-03-06 16:27:17 +0000
commit66b2226eb829517aa2c825df0f8ae4135bd14b1c (patch)
tree098381c8adbd5d3ab90b44657adb8829c9b232e0 /libcxx/test/numerics
parent86a8f720419705baeaa878672c341631a84f5ba6 (diff)
downloadbcm5719-llvm-66b2226eb829517aa2c825df0f8ae4135bd14b1c.tar.gz
bcm5719-llvm-66b2226eb829517aa2c825df0f8ae4135bd14b1c.zip
Fix a couple of -Wabsolute-value warnings in the libc++ tests
llvm-svn: 203126
Diffstat (limited to 'libcxx/test/numerics')
-rw-r--r--libcxx/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp b/libcxx/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp
index 451fc160ec7..b821109b751 100644
--- a/libcxx/test/numerics/complex.number/complex.transcendentals/atanh.pass.cpp
+++ b/libcxx/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()));
OpenPOWER on IntegriCloud