Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/wasefire
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5c1c205e3085b5d195e70f71c2bd76f6f88a3897
Choose a base ref
..
head repository: google/wasefire
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cc29418323e473c81ea046697e4bf0007f55e556
Choose a head ref
Showing with 3 additions and 2 deletions.
  1. +3 −2 crates/interpreter/src/valid.rs
5 changes: 3 additions & 2 deletions crates/interpreter/src/valid.rs
Original file line number Diff line number Diff line change
@@ -459,9 +459,9 @@ impl SideTable {
fn pop_cnt(source: SideTableBranch, target: SideTableBranch) -> MResult<u32, Check> {
let source = source.stack;
let target = target.stack;
let Some(delta) = target.checked_sub(source) else {
let Some(delta) = source.checked_sub(target) else {
#[cfg(feature = "debug")]
eprintln!("side-table negative stack delta {target} < {source}");
eprintln!("side-table negative stack delta {source} < {target}");
return Err(unsupported(if_debug!(Unsupported::SideTable)));
};
u32::try_from(delta).map_err(|_| {
@@ -880,6 +880,7 @@ impl<'a, 'm> Expr<'a, 'm> {
fn branch_source(&mut self, result: usize) -> SideTableBranch<'m> {
let mut branch = self.branch_target();
branch.result = result;
branch.stack += self.stack().len();
self.side_table.branch();
branch
}