Merge pull request #584 from ROCm-Developer-Tools/fix-vector-explicit-cast

Fix explicit cast required

[ROCm/clr commit: 123af1a9c6]
Этот коммит содержится в:
Maneesh Gupta
2018-07-23 10:13:05 +05:30
коммит произвёл GitHub
родитель 48335701ff 1282ef2e0c
Коммит 9f23f7fc99
+1 -1
Просмотреть файл
@@ -123,7 +123,7 @@ THE SOFTWARE.
typename std::enable_if<
(rank > 1) && sizeof...(Us) == rank>::type* = nullptr>
__host__ __device__
HIP_vector_type(Us... xs) noexcept { data = Native_vec_{xs...}; }
HIP_vector_type(Us... xs) noexcept { data = Native_vec_{static_cast<T>(xs)...}; }
__host__ __device__
HIP_vector_type(const HIP_vector_type&) = default;
__host__ __device__