From 0bcaaf67850f3d6bed35d02c22a8d873ffe395cc Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Wed, 17 Aug 2016 16:46:39 -0700 Subject: fix dump tests, update binary version to 0xc --- src/wasm-binary-writer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/wasm-binary-writer.c') diff --git a/src/wasm-binary-writer.c b/src/wasm-binary-writer.c index 684ea519..f9a2da49 100644 --- a/src/wasm-binary-writer.c +++ b/src/wasm-binary-writer.c @@ -484,8 +484,7 @@ static void write_expr(Context* ctx, case WASM_EXPR_TYPE_TEE_LOCAL: { int index = wasm_get_local_index_by_var(func, &expr->get_local.var); write_opcode(&ctx->stream, WASM_OPCODE_TEE_LOCAL); - write_u32_leb128(&ctx->stream, ctx->remapped_locals[index], - "remapped local index"); + write_u32_leb128(&ctx->stream, index, "local index"); break; } case WASM_EXPR_TYPE_UNARY: -- cgit v1.2.3