Skip to content

Commit f6d8bdf

Browse files
committed
Apply suggestion
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 3e75f72 commit f6d8bdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/multi_ptr.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ template <typename ElementType, access::address_space Space> class multi_ptr {
288288
using global_pointer_t = typename detail::PtrValueType<
289289
ElementType, access::address_space::global_space>::type *;
290290
return multi_ptr<ElementType, access::address_space::global_space>(
291-
(global_pointer_t)m_Pointer);
291+
reinterpret_cast<global_pointer_t>(m_Pointer));
292292
}
293293

294294
// Only if Space == global_space

0 commit comments

Comments
 (0)