diff options
author | Ben Smith <binji@chromium.org> | 2016-10-20 13:35:21 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-10-26 10:15:51 -0700 |
commit | 04b5b36fc0cc6746e5939bcafc4e95a7c40722c1 (patch) | |
tree | ff421005971e5967133881a2044aec80a53b1d11 /src/wasm-binary-reader.c | |
parent | 134a7599e72f5d496450f8a9c03a992c8d678155 (diff) | |
download | wabt-04b5b36fc0cc6746e5939bcafc4e95a7c40722c1.tar.gz wabt-04b5b36fc0cc6746e5939bcafc4e95a7c40722c1.tar.bz2 wabt-04b5b36fc0cc6746e5939bcafc4e95a7c40722c1.zip |
Remap the operator encoding for binary 0xd
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; |