From a5cf2874415185c72fdcb80a3d8824f61320b242 Mon Sep 17 00:00:00 2001 From: Wesley Maxey Date: Tue, 17 Nov 2020 21:17:28 -0800 Subject: [PATCH] Fix gcc-4.8 constexpr warning --- libcxx/include/complex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/include/complex b/libcxx/include/complex index 5ea834a942..935122f1df 100644 --- a/libcxx/include/complex +++ b/libcxx/include/complex @@ -697,7 +697,7 @@ operator*(const _Tp& __x, const complex<_Tp>& __y) namespace detail { template - inline _LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR _Tp __scalbn(_Tp __x, int __i) { + inline _LIBCUDACXX_INLINE_VISIBILITY _Tp __scalbn(_Tp __x, int __i) { return static_cast<_Tp>(scalbn(static_cast(__x), __i)); }