gpu: remove pointless and errorful cast

happens on 32bit targets
This commit is contained in:
Ali Chraghi 2022-09-20 11:04:21 +04:30 committed by Stephen Gutekanst
parent 18ad648e68
commit f750f752ef

View file

@ -66,7 +66,7 @@ pub const Queue = opaque {
buffer, buffer,
buffer_offset_bytes, buffer_offset_bytes,
@ptrCast(*const anyopaque, data_slice.ptr), @ptrCast(*const anyopaque, data_slice.ptr),
@intCast(u64, data_slice.len) * @sizeOf(std.meta.Elem(@TypeOf(data_slice))), data_slice.len * @sizeOf(std.meta.Elem(@TypeOf(data_slice))),
); );
} }