diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-11 20:40:55 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-11 20:58:53 -0800 |
commit | 686a8334090f57e1ba218e552819b3c6374059b5 (patch) | |
tree | f5dd8b43127fda4671eb4c7ce93440995525744e /src/wasm-js.cpp | |
parent | efe369358fd6c8ede5145f12bfa511b515d2a32a (diff) | |
download | binaryen-686a8334090f57e1ba218e552819b3c6374059b5.tar.gz binaryen-686a8334090f57e1ba218e552819b3c6374059b5.tar.bz2 binaryen-686a8334090f57e1ba218e552819b3c6374059b5.zip |
refactor FunctionType to always be accessed from the Module's central store, which is necessary for simple binary writing
Diffstat (limited to 'src/wasm-js.cpp')
-rw-r--r-- | src/wasm-js.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-js.cpp b/src/wasm-js.cpp index fdb157319..b767b8a25 100644 --- a/src/wasm-js.cpp +++ b/src/wasm-js.cpp @@ -190,7 +190,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE instantiate() { if (wasmJSDebug) std::cout << "calling import returning " << ret << '\n'; - switch (import->type.result) { + switch (import->type->result) { case none: return Literal(0); case i32: return Literal((int32_t)ret); case f32: return Literal((float)ret); |