Fix multiplication overflow in span() computation

This commit is contained in:
Dzmitry Malyshau
2022-01-13 13:27:15 -05:00
parent aedcc56b81
commit bf0cb2b3a9

View File

@@ -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,