summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp')
-rw-r--r--libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp b/libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp
index 978c6255ac3..c649157a8c3 100644
--- a/libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp
+++ b/libcxx/test/std/numerics/complex.number/cmplx.over/arg.pass.cpp
@@ -24,7 +24,7 @@ void
test(T x, typename std::enable_if<std::is_integral<T>::value>::type* = 0)
{
static_assert((std::is_same<decltype(std::arg(x)), double>::value), "");
- assert(std::arg(x) == arg(std::complex<double>(x, 0)));
+ assert(std::arg(x) == arg(std::complex<double>(static_cast<double>(x), 0)));
}
template <class T>
OpenPOWER on IntegriCloud