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 5eed4d4c4..7e56ef849 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -148,7 +148,7 @@ private: Fatal() << "Cannot get offset of passive segment initialized " "multiple times"; } - offsets[curr->segment] = dest->value.geti32(); + offsets[curr->segment] = dest->value.getInteger(); } } searcher(passiveOffsets); searcher.walkModule(&wasm); @@ -514,7 +514,7 @@ void EmscriptenGlueGenerator::separateDataSegments(Output* outfile, if (!seg.offset->is<Const>()) { Fatal() << "separating relocatable segments not implemented"; } - size_t offset = seg.offset->cast<Const>()->value.geti32(); + size_t offset = seg.offset->cast<Const>()->value.getInteger(); offset -= base; size_t fill = offset - lastEnd; if (fill > 0) { |