Skip to content

Commit 979201a

Browse files
committed
fixup the const cast
1 parent bcec635 commit 979201a

File tree

1 file changed

+2
-2
lines changed
  • sycl/include/sycl/ext/intel/experimental

1 file changed

+2
-2
lines changed

sycl/include/sycl/ext/intel/experimental/pipes.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class pipe : public pipe_base {
104104

105105
const void *HostPipePtr = &m_Storage;
106106
const std::string PipeName = pipe_base::get_pipe_name(HostPipePtr);
107-
void *DataPtr = const_cast<void *>(&Data);
107+
void *DataPtr = const_cast<_dataT *>(&Data);
108108

109109
event E = Q.submit([=](handler &CGH) {
110110
CGH.ext_intel_write_host_pipe(
@@ -249,7 +249,7 @@ class pipe : public pipe_base {
249249
}
250250
const void *HostPipePtr = &m_Storage;
251251
const std::string PipeName = pipe_base::get_pipe_name(HostPipePtr);
252-
void *DataPtr = const_cast<void *>(&Data);
252+
void *DataPtr = const_cast<_dataT *>(&Data);
253253
event E = Q.submit([=](handler &CGH) {
254254
CGH.ext_intel_write_host_pipe(PipeName, DataPtr,
255255
sizeof(_dataT), true /*blocking */);

0 commit comments

Comments
 (0)