diff options
author | Derek Schuff <dschuff@chromium.org> | 2016-01-05 14:18:11 -0800 |
---|---|---|
committer | Derek Schuff <dschuff@chromium.org> | 2016-01-05 14:18:11 -0800 |
commit | ee7a01815045ffbe1ef097ea5af12594fd6ad2f7 (patch) | |
tree | 2bba2ea810565fd3331e591a85313a2f1899b16d /src/wasm-binary-writer.c | |
parent | 519b49121bf028d8646a78e2621c3934fc92c095 (diff) | |
parent | 3d9be10028c6c3136c8e98f32c91fae369bd3ed2 (diff) | |
download | wabt-ee7a01815045ffbe1ef097ea5af12594fd6ad2f7.tar.gz wabt-ee7a01815045ffbe1ef097ea5af12594fd6ad2f7.tar.bz2 wabt-ee7a01815045ffbe1ef097ea5af12594fd6ad2f7.zip |
Merge pull request #16 from WebAssembly/support_cxx
Support use of parser and AST in C++ programs
Diffstat (limited to 'src/wasm-binary-writer.c')
-rw-r--r-- | src/wasm-binary-writer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-binary-writer.c b/src/wasm-binary-writer.c index 16c53095..ba0bac43 100644 --- a/src/wasm-binary-writer.c +++ b/src/wasm-binary-writer.c @@ -1336,7 +1336,7 @@ static WasmModuleField* append_module_field_and_fixup( WasmExportPtr* export_ptr = wasm_append_export_ptr(&module->exports); if (!export_ptr) goto fail; - *export_ptr = &result->export; + *export_ptr = &result->export_; break; } case WASM_MODULE_FIELD_TYPE_FUNC_TYPE: { @@ -1378,7 +1378,7 @@ static WasmModuleField* append_module_field_and_fixup( break; case WASM_MODULE_FIELD_TYPE_EXPORT: assert(num_exports < module->exports.size); - module->exports.data[num_exports++] = &field->export; + module->exports.data[num_exports++] = &field->export_; break; case WASM_MODULE_FIELD_TYPE_TABLE: module->table = &field->table; @@ -1433,7 +1433,7 @@ static WasmFunc* append_nullary_func(WasmModule* module, /* leave the func field, it will be cleaned up later */ return NULL; } - WasmExport* export = &export_field->export; + WasmExport* export = &export_field->export_; export->var.type = WASM_VAR_TYPE_INDEX; export->var.index = func_index; export->name = export_name; |