diff options
Diffstat (limited to 'src/wasm-binary-reader.c')
-rw-r--r-- | src/wasm-binary-reader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-binary-reader.c b/src/wasm-binary-reader.c index d30473d5..be39c893 100644 --- a/src/wasm-binary-reader.c +++ b/src/wasm-binary-reader.c @@ -1414,11 +1414,11 @@ static void read_function_body(Context* ctx, break; } - case WASM_OPCODE_CALL_FUNCTION: { + case WASM_OPCODE_CALL: { uint32_t func_index; - in_u32_leb128(ctx, &func_index, "call_function function index"); + in_u32_leb128(ctx, &func_index, "call function index"); RAISE_ERROR_UNLESS(func_index < num_total_funcs(ctx), - "invalid call_function function index"); + "invalid call function index"); CALLBACK(on_call_expr, func_index); CALLBACK_CTX(on_opcode_uint32, func_index); break; |