summaryrefslogtreecommitdiff
path: root/src/wasm-binary-writer.c
diff options
context:
space:
mode:
authorBen Smith <binji@chromium.org>2016-10-20 13:35:21 -0700
committerBen Smith <binji@chromium.org>2016-10-26 10:15:51 -0700
commit04b5b36fc0cc6746e5939bcafc4e95a7c40722c1 (patch)
treeff421005971e5967133881a2044aec80a53b1d11 /src/wasm-binary-writer.c
parent134a7599e72f5d496450f8a9c03a992c8d678155 (diff)
downloadwabt-04b5b36fc0cc6746e5939bcafc4e95a7c40722c1.tar.gz
wabt-04b5b36fc0cc6746e5939bcafc4e95a7c40722c1.tar.bz2
wabt-04b5b36fc0cc6746e5939bcafc4e95a7c40722c1.zip
Remap the operator encoding for binary 0xd
Diffstat (limited to 'src/wasm-binary-writer.c')
-rw-r--r--src/wasm-binary-writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-binary-writer.c b/src/wasm-binary-writer.c
index 769bf5b8..319b6139 100644
--- a/src/wasm-binary-writer.c
+++ b/src/wasm-binary-writer.c
@@ -376,7 +376,7 @@ static void write_expr(Context* ctx,
case WASM_EXPR_TYPE_CALL: {
int index = wasm_get_func_index_by_var(module, &expr->call.var);
assert(index >= 0 && (size_t)index < module->funcs.size);
- write_opcode(&ctx->stream, WASM_OPCODE_CALL_FUNCTION);
+ write_opcode(&ctx->stream, WASM_OPCODE_CALL);
write_u32_leb128(&ctx->stream, index, "func index");
break;
}