Skip to content

Commit

Permalink
Refactor: improve formatting and readability in AOT runtime and C API…
Browse files Browse the repository at this point in the history
… functions
  • Loading branch information
lum1n0us committed Jan 16, 2025
1 parent 32dab97 commit ee34499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/iwasm/aot/aot_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ init_func_ptrs(AOTModuleInstance *module_inst, AOTModule *module,

if (!func_ptrs) {
LOG_WARNING("warning: failed to link import function (%s,%s)",
import_func->module_name, import_func->func_name);
import_func->module_name, import_func->func_name);
}
}

Expand Down
4 changes: 2 additions & 2 deletions core/iwasm/common/wasm_c_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -4967,8 +4967,8 @@ wasm_instance_create_import_list(const wasm_module_t *module,
return false;
}

*imports_dst =
malloc_internal((uint64)sizeof(WASMExternInstance) * imports_src->num_elems);
*imports_dst = malloc_internal((uint64)sizeof(WASMExternInstance)
* imports_src->num_elems);
if (!*imports_dst) {
return false;
}
Expand Down

0 comments on commit ee34499

Please sign in to comment.