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

Fix explicit cast required
此提交包含在:
Maneesh Gupta authored and GitHub committed 2018-07-23 10:13:05 +05:30
2 父節點 4d6a3f3eba 032ebd41ea
當前提交 123af1a9c6
1 file changed
+1 -1
+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__