From 0ef37c22950f52dc0cf0915809b751ec24278e2e Mon Sep 17 00:00:00 2001 From: James Ring Date: Thu, 21 Nov 2024 20:05:25 -0800 Subject: [PATCH] Use plain assignment rather than bh_memcpy_s --- core/iwasm/interpreter/wasm_runtime.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/iwasm/interpreter/wasm_runtime.c b/core/iwasm/interpreter/wasm_runtime.c index 0f1ccd9371..5595eb6571 100644 --- a/core/iwasm/interpreter/wasm_runtime.c +++ b/core/iwasm/interpreter/wasm_runtime.c @@ -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