This commit is contained in:
Ashwin Naren committed 2025-04-15 11:44:04 -07:00
1 parent 628287c14e
commit d44324d4d0
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1948,7 +1948,7 @@ impl Compiler<'_> {
// If no name is provided, simply pop the top of the stack.
None => {
emit!(self, Instruction::Pop);
return Ok(());
Ok(())
}
Some(name) => {
// Check if the name is forbidden for storing.
+1 -1
View File
@@ -244,7 +244,7 @@ impl CodeInfo {
let instr_display = instr.display(display_arg, self);
eprint!("{instr_display}: {depth} {effect:+} => ");
}
if effect < 0 && depth < effect.abs() as u32 {
if effect < 0 && depth < effect.unsigned_abs() {
panic!("The stack will underflow at {depth} with {effect} effect on {instr:?}");
}
let new_depth = depth.checked_add_signed(effect).unwrap();