From c0cd8cab99a470c717248d2e8c9c1d42548d1c52 Mon Sep 17 00:00:00 2001 From: wenlingyun1 Date: Thu, 12 Sep 2024 11:22:59 +0800 Subject: [PATCH] fix coding-style warning Signed-off-by: wenlingyun1 --- core/iwasm/common/wasm_memory.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/iwasm/common/wasm_memory.c b/core/iwasm/common/wasm_memory.c index e9e3ddec6e..027ef8083e 100644 --- a/core/iwasm/common/wasm_memory.c +++ b/core/iwasm/common/wasm_memory.c @@ -298,8 +298,8 @@ wasm_runtime_detach_shared_heap_internal(WASMModuleInstanceCommon *module_inst) } static bool -is_app_addr_in_shared_heap(WASMModuleInstanceCommon *module_inst_comm, bool is_memory64, - uint64 app_offset, uint32 bytes) +is_app_addr_in_shared_heap(WASMModuleInstanceCommon *module_inst_comm, + bool is_memory64, uint64 app_offset, uint32 bytes) { WASMSharedHeap *heap = NULL; if (module_inst_comm->module_type == Wasm_Module_Bytecode) { @@ -452,7 +452,8 @@ wasm_runtime_shared_heap_malloc(WASMModuleInstanceCommon *module_inst, if (heap) { *p_native_addr = mem_allocator_malloc(heap->heap_handle, size); - return shared_heap_addr_native_to_app(module_inst, memory, *p_native_addr); + return shared_heap_addr_native_to_app(module_inst, memory, + *p_native_addr); } else { LOG_WARNING("Wasm module doesn't attach to a shared heap");