Skip to content

Commit

Permalink
Fix multiplication overflow in span() computation
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Jan 13, 2022
1 parent dd96703 commit ea293ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ea293ae

Please sign in to comment.