Skip to content

Commit 05a7dff

Browse files
committed
fixup const qualifier
1 parent 39ab2b9 commit 05a7dff

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ 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 = &Data;
107+
void *DataPtr = const_cast<void *>(&Data);
108108

109109
event E = Q.submit([=](handler &CGH) {
110110
CGH.ext_intel_write_host_pipe(
111-
PipeName, (void *)DataPtr, sizeof(_dataT) /* non-blocking */);
111+
PipeName, DataPtr, sizeof(_dataT) /* non-blocking */);
112112
});
113113
E.wait();
114114
Success = E.get_info<sycl::info::event::command_execution_status>() ==
@@ -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 = &Data;
252+
void *DataPtr = const_cast<void *>(&Data);
253253
event E = Q.submit([=](handler &CGH) {
254254
CGH.ext_intel_write_host_pipe(PipeName, (void *)DataPtr,
255255
sizeof(_dataT), true /*blocking */);

0 commit comments

Comments
 (0)