diff options
author | Ben Smith <binji@chromium.org> | 2016-08-17 16:46:39 -0700 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-09-29 11:37:27 -0700 |
commit | 0bcaaf67850f3d6bed35d02c22a8d873ffe395cc (patch) | |
tree | ebaa0293f16aa7bfed62b89cee6a7311de55d252 /src | |
parent | b8793f6aabd4932114674443fd42c3448036044c (diff) | |
download | wabt-0bcaaf67850f3d6bed35d02c22a8d873ffe395cc.tar.gz wabt-0bcaaf67850f3d6bed35d02c22a8d873ffe395cc.tar.bz2 wabt-0bcaaf67850f3d6bed35d02c22a8d873ffe395cc.zip |
fix dump tests, update binary version to 0xc
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" |