mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Use plain assignment rather than bh_memcpy_s (#3924)
This commit is contained in:
parent
9d8150efae
commit
dbdf3df60b
|
@ -1208,9 +1208,8 @@ 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),
|
global->initial_value =
|
||||||
&(global_import->import_global_linked->init_expr.u),
|
global_import->import_global_linked->init_expr.u;
|
||||||
sizeof(WASMValue));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user