We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce0a0e4 commit 650ff9eCopy full SHA for 650ff9e
sycl/include/CL/sycl/handler.hpp
@@ -539,7 +539,7 @@ class __SYCL_EXPORT handler {
539
size_t LinearIndex = Index[0];
540
for (int I = 1; I < Dim; ++I)
541
LinearIndex += Range[I] * Index[I];
542
- ((TSrc *)Dst)[LinearIndex] = Src[Index];
+ (reinterpret_cast<TSrc *>(Dst))[LinearIndex] = Src[Index];
543
});
544
}
545
@@ -574,7 +574,7 @@ class __SYCL_EXPORT handler {
574
575
576
577
- Dst[Index] = ((TDst *)Src)[LinearIndex];
+ Dst[Index] = (reinterpret_cast<TDst *>(Src))[LinearIndex];
578
579
580
0 commit comments