diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-binary-writer.c | 3 | ||||
-rw-r--r-- | src/wasm-binary.h | 2 |
2 files changed, 2 insertions, 3 deletions
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: diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 5d3171cf..7d8aee56 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -18,7 +18,7 @@ #define WASM_BINARY_H_ #define WASM_BINARY_MAGIC 0x6d736100 -#define WASM_BINARY_VERSION 0x0b +#define WASM_BINARY_VERSION 0x0c #define WASM_BINARY_TYPE_FORM_FUNCTION 0x40 #define WASM_SECTION_NAME_TYPE "type" |