|
@@ -1209,7 +1209,7 @@ globals_instantiate(WASMModule *module, WASMModuleInstance *module_inst,
|
|
|
/* The linked global instance has been initialized, we
|
|
/* The linked global instance has been initialized, we
|
|
|
just need to copy the value. */
|
|
just need to copy the value. */
|
|
|
bh_memcpy_s(&(global->initial_value), sizeof(WASMValue),
|
|
bh_memcpy_s(&(global->initial_value), sizeof(WASMValue),
|
|
|
- &(global_import->import_global_linked->init_expr),
|
|
|
|
|
|
|
+ &(global_import->import_global_linked->init_expr.u),
|
|
|
sizeof(WASMValue));
|
|
sizeof(WASMValue));
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|