diff options
Diffstat (limited to 'src/wasm')
-rw-r--r-- | src/wasm/wasm-emscripten.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-emscripten.cpp b/src/wasm/wasm-emscripten.cpp index 7a593f599..99c3216b6 100644 --- a/src/wasm/wasm-emscripten.cpp +++ b/src/wasm/wasm-emscripten.cpp @@ -447,7 +447,7 @@ EmJsWalker findEmJsFuncsAndReturnWalker(Module& wasm) { // We can detect this by checking for segments that contain only JS strings. // When we find such segements we remove them from the final binary. for (Index i = 0; i < wasm.memory.segments.size(); i++) { - Address start = walker.stringTracker.segmentOffsets[0]; + Address start = walker.stringTracker.segmentOffsets[i]; Address cur = start; while (cur < start + wasm.memory.segments[i].data.size()) { |