diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc index 084a3e0c61..02ee564656 100644 --- a/src/wasm/wasm-objects.cc +++ b/src/wasm/wasm-objects.cc @@ -1501,7 +1501,8 @@ WasmInstanceObject::GetGlobalBufferAndIndex(Handle instance, FixedArray::cast( instance->imported_mutable_globals_buffers().get(global.index)), isolate); - Address idx = instance->imported_mutable_globals().get(global.index); + Address idx = instance->imported_mutable_globals().get_int( + global.index * kSystemPointerSize); DCHECK_LE(idx, std::numeric_limits::max()); return {buffer, static_cast(idx)}; }