diff options
author | Ben Smith <binji@chromium.org> | 2016-11-12 13:38:36 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2016-11-16 10:21:13 -0800 |
commit | 0029de32e08f23cc59d36dbdbaa38a25f185a3c0 (patch) | |
tree | 006ba7f23bf8b574f77ae16c98a7aaf4307b6d2a /src/binary-reader-interpreter.c | |
parent | c73c9100c2e480da4cda6339df01a8341ddbb46d (diff) | |
download | wabt-0029de32e08f23cc59d36dbdbaa38a25f185a3c0.tar.gz wabt-0029de32e08f23cc59d36dbdbaa38a25f185a3c0.tar.bz2 wabt-0029de32e08f23cc59d36dbdbaa38a25f185a3c0.zip |
Add wast_resolve_names_* as a separate pass
This used to be handled by wasm_check_ast, but is clunkier than having a
separate pass.
Diffstat (limited to 'src/binary-reader-interpreter.c')
-rw-r--r-- | src/binary-reader-interpreter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binary-reader-interpreter.c b/src/binary-reader-interpreter.c index 32fcc6a3..bfbb9cc5 100644 --- a/src/binary-reader-interpreter.c +++ b/src/binary-reader-interpreter.c @@ -217,7 +217,7 @@ static uint32_t translate_global_index_to_env(Context* ctx, static uint32_t translate_defined_global_index_to_env(Context* ctx, uint32_t global_index) { - /* all globaltion imports are first, so skip over those */ + /* all global imports are first, so skip over those */ global_index += ctx->num_global_imports; assert(global_index < ctx->global_index_mapping.size); return ctx->global_index_mapping.data[global_index]; |