mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Fix multiplication overflow in span() computation
This commit is contained in:
@@ -101,7 +101,7 @@ impl super::TypeInner {
|
||||
size,
|
||||
kind: _,
|
||||
width,
|
||||
} => (size as u8 * width) as u32,
|
||||
} => size as u32 * width as u32,
|
||||
// matrices are treated as arrays of aligned columns
|
||||
Self::Matrix {
|
||||
columns,
|
||||
|
||||
Reference in New Issue
Block a user