mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-26 01:11:22 +01:00
Fix multiplication overflow in span() computation
This commit is contained in:
1 parent
aedcc56b81
commit
bf0cb2b3a9
1 file changed
+1
-1
+1
-1
@@ -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