Use plain assignment rather than bh_memcpy_s (#3924)

This commit is contained in:
James Ring 2024-11-23 19:32:34 -08:00 committed by GitHub
parent 9d8150efae
commit dbdf3df60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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