aboutsummaryrefslogtreecommitdiffhomepage
path: root/level_zero/src/ze.rs
diff options
context:
space:
mode:
Diffstat (limited to 'level_zero/src/ze.rs')
-rw-r--r--level_zero/src/ze.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/level_zero/src/ze.rs b/level_zero/src/ze.rs
index 4f120de..eb3887b 100644
--- a/level_zero/src/ze.rs
+++ b/level_zero/src/ze.rs
@@ -743,7 +743,7 @@ impl<'a> Kernel<'a> {
check!(sys::zeKernelSetArgumentValue(
self.0,
index,
- mem::size_of::<T>(),
+ mem::size_of::<*const ()>(),
&ptr as *const _ as *const _,
));
Ok(())