diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-15 18:48:16 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-11-15 18:48:16 +0100 |
| commit | 0b2a1fd9439d5ab1cdc076d7b9f1e763c4900b74 (patch) | |
| tree | a0a1724b1a8b2dbde94e938bb18b6ca4bb5ce800 /src/op/br.c | |
| parent | 4a356bf56051361f2c72037f4fb043f8fdaa576c (diff) | |
| download | nanowasm-0b2a1fd9439d5ab1cdc076d7b9f1e763c4900b74.tar.gz | |
Add br_table
br_table is in fact a generalization of other branch types like br or
br_if, since br_table contains several branches for the same pc inside
the nw_lo section.
Therefore, this kind of branch forced some changes to nwp_break and
those relying on it.
Diffstat (limited to 'src/op/br.c')
| -rw-r--r-- | src/op/br.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op/br.c b/src/op/br.c index dd0066f..212d5dd 100644 --- a/src/op/br.c +++ b/src/op/br.c @@ -23,7 +23,7 @@ static enum nw_state get_relative_depth(struct nw_interp *const i) if (n) return n; - nwp_break(i, b->relative_depth); + nwp_break(i, b->relative_depth, 0); return NW_AGAIN; } |
