From e39c4966c741932e5a88a073c6c9201bba5d536c Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 22 Jun 2015 16:09:32 +0100 Subject: [PATCH] 1.cc: Use non-negative rho argument. * testsuite/26_numerics/complex/value_operations/1.cc: Use non-negative rho argument. From-SVN: r224739 --- libstdc++-v3/ChangeLog | 3 +++ .../testsuite/26_numerics/complex/value_operations/1.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1166a1880ce..5aad2456912 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2015-06-22 Jonathan Wakely + * testsuite/26_numerics/complex/value_operations/1.cc: Use + non-negative rho argument. + * include/debug/list (__gnu_debug::list): Use allocator-aware _Safe_container base. * include/debug/string (__gnu_debug::basic_string): Use diff --git a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc index 1caf9f1ebeb..a1e0a6b00e3 100644 --- a/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc +++ b/libstdc++-v3/testsuite/26_numerics/complex/value_operations/1.cc @@ -53,7 +53,7 @@ void test01() complex_type e __attribute__((unused)) = conj(c); - complex_type f = polar(c.imag(), 0.0); + complex_type f = polar(std::abs(c.imag()), 0.0); VERIFY( f.real() != 0 ); } -- 2.30.2