We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efbfb48 commit 8b07c3bCopy full SHA for 8b07c3b
crates/wasmi/src/engine/executor/handler/state.rs
@@ -381,8 +381,8 @@ pub struct ValueStack {
381
382
impl ValueStack {
383
fn new(min_height: usize, max_height: usize) -> Self {
384
- // We need to convert from `size_of<Cell>`` to `size_of<u8>`:
385
debug_assert!(min_height <= max_height);
+ // We need to convert from `size_of<Cell>`` to `size_of<u8>`:
386
let sizeof_cell = mem::size_of::<UntypedVal>();
387
let min_height = min_height / sizeof_cell;
388
let max_height = max_height / sizeof_cell;
0 commit comments