diff options
Diffstat (limited to 'src/wasm/wasm-emscripten.cpp')
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 4a8f2c0c3..2fcabb3b2 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -144,7 +144,7 @@ Function* EmscriptenGlueGenerator::generateAssignGOTEntriesFunction() { } // Make this an internal, non-imported, global. g->module.clear(); - g->init = Builder(wasm).makeConst(Literal(0)); + g->init = Builder(wasm).makeConst(int32_t(0)); } if (!gotFuncEntries.size() && !gotMemEntries.size()) { @@ -507,7 +507,7 @@ void EmscriptenGlueGenerator::enforceStackLimit() { auto* stackLimit = builder.makeGlobal(STACK_LIMIT, stackPointer->type, - builder.makeConst(Literal(0)), + builder.makeConst(int32_t(0)), Builder::Mutable); wasm.addGlobal(stackLimit); |