From 0029de32e08f23cc59d36dbdbaa38a25f185a3c0 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Sat, 12 Nov 2016 13:38:36 -0800 Subject: 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. --- src/binary-reader-interpreter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/binary-reader-interpreter.c') 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]; -- cgit v1.2.3