mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
nak: use std::mem::size_of_val(data) instead of open-coding it
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
de7d3cdbda
commit
eef174b56b
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ impl Runner {
|
|||
data.len().try_into().unwrap(),
|
||||
stride.try_into().unwrap(),
|
||||
data.as_mut_ptr().cast(),
|
||||
data.len() * stride,
|
||||
size_of_val(data),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue