Skip to content

Commit

Permalink
fix coding-style warning
Browse files Browse the repository at this point in the history
Signed-off-by: wenlingyun1 <[email protected]>
  • Loading branch information
WenLY1 committed Sep 12, 2024
1 parent 399363a commit c0cd8ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/iwasm/common/wasm_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit c0cd8ca

Please sign in to comment.