@@ -1139,7 +1139,7 @@ memories_instantiate(AOTModuleInstance *module_inst, AOTModuleInstance *parent,
11391139
11401140 if (memory_inst -> memory_data ) {
11411141 bh_memcpy_s ((uint8 * )memory_inst -> memory_data + base_offset ,
1142- (uint32 )memory_inst -> memory_data_size - base_offset ,
1142+ (uint32 )( memory_inst -> memory_data_size - base_offset ) ,
11431143 data_seg -> bytes , length );
11441144 }
11451145 }
@@ -1212,7 +1212,7 @@ aot_get_function_instance(AOTModuleInstance *module_inst, uint32 func_idx)
12121212 return NULL ;
12131213 }
12141214
1215- extra -> function_count = func_count ;
1215+ extra -> function_count = ( uint32 ) func_count ;
12161216 }
12171217
12181218 /* instantiate function if needed */
@@ -1764,8 +1764,8 @@ aot_instantiate(AOTModule *module, AOTModuleInstance *parent,
17641764 aot_get_data_section_addr (module , AOT_STACK_SIZES_SECTION_NAME , NULL );
17651765
17661766#if WASM_ENABLE_PERF_PROFILING != 0
1767- total_size = ( uint64 ) sizeof (AOTFuncPerfProfInfo )
1768- * (module -> import_func_count + module -> func_count );
1767+ total_size = sizeof (AOTFuncPerfProfInfo )
1768+ * (( uint64 ) module -> import_func_count + module -> func_count );
17691769 if (!(module_inst -> func_perf_profilings =
17701770 runtime_malloc (total_size , error_buf , error_buf_size ))) {
17711771 goto fail ;
@@ -2536,7 +2536,7 @@ execute_malloc_function(AOTModuleInstance *module_inst, WASMExecEnv *exec_env,
25362536 if (ret ) {
25372537#if WASM_ENABLE_MEMORY64 != 0
25382538 if (is_memory64 )
2539- * p_result = GET_I64_FROM_ADDR ( & argv .u64 ) ;
2539+ * p_result = argv .u64 ;
25402540 else
25412541#endif
25422542 {
0 commit comments