From cb55dc384a683371f6bbf69fb780c45cdfe72cdf Mon Sep 17 00:00:00 2001 From: Michael LIAO Date: Fri, 3 May 2019 14:56:00 -0400 Subject: [PATCH] [test] Use explicit cast for address space cast. [ROCm/hip commit: 2746d959064165a980d6c7f6a662f3797e302bf2] --- projects/hip/tests/src/deviceLib/hipAsynchronousStreams.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/tests/src/deviceLib/hipAsynchronousStreams.cpp b/projects/hip/tests/src/deviceLib/hipAsynchronousStreams.cpp index 17e6254154..b5f6d25793 100644 --- a/projects/hip/tests/src/deviceLib/hipAsynchronousStreams.cpp +++ b/projects/hip/tests/src/deviceLib/hipAsynchronousStreams.cpp @@ -117,7 +117,7 @@ __hip_as_write_block(__ockl_as_stream_t *stream, uchar service_id, uchar flags) { __ockl_as_stream_t ATTR_GLOBAL *gstream = - reinterpret_cast<__ockl_as_stream_t ATTR_GLOBAL *>(stream); + (__ockl_as_stream_t ATTR_GLOBAL *)(stream); return __ockl_as_write_block(gstream, service_id, connection_id, str, len, flags); }