From 0b2a1fd9439d5ab1cdc076d7b9f1e763c4900b74 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 15 Nov 2025 18:48:16 +0100 Subject: 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. --- src/interp/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interp') diff --git a/src/interp/ops.c b/src/interp/ops.c index 9f80668..4366a49 100644 --- a/src/interp/ops.c +++ b/src/interp/ops.c @@ -28,7 +28,7 @@ static void (*const ops[])(struct nw_interp *) = nwp_op_end, /* OP_END */ nwp_op_br, /* OP_BR */ nwp_op_br_if, /* OP_BR_IF */ - NULL, /* OP_BR_TABLE */ + nwp_op_br_table, /* OP_BR_TABLE */ nwp_op_return, /* OP_RETURN */ nwp_op_call, /* OP_CALL */ nwp_op_call_indirect, /* OP_CALL_INDIRECT */ -- cgit v1.2.3