Skip to content

Commit e7c06b5

Browse files
committed
improve debug assert message
1 parent d8b9239 commit e7c06b5

File tree

1 file changed

+1
-1
lines changed
  • crates/wasmi/src/engine/executor/handler

1 file changed

+1
-1
lines changed

crates/wasmi/src/engine/executor/handler/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub struct Sp {
174174

175175
impl Sp {
176176
pub fn new(cells: &mut Vec<UntypedVal>, start: usize) -> Self {
177-
debug_assert!(start < cells.len());
177+
debug_assert!(start < cells.len(), "start = {}, cells.len() = {}", start, cells.len());
178178
Self {
179179
value: unsafe { cells.as_mut_ptr().add(start) },
180180
}

0 commit comments

Comments
 (0)