mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-31 13:17:31 +00:00 
			
		
		
		
	Fix Windows compilation warnings (#1171)
And update the Zephyr platform sample help, add arc target into usage list.
This commit is contained in:
		
							parent
							
								
									0993601d55
								
							
						
					
					
						commit
						d7a2888b18
					
				|  | @ -1273,7 +1273,7 @@ wasm_runtime_prepare_call_function(WASMExecEnv *exec_env, | |||
|     } | ||||
| 
 | ||||
|     if (!need_param_transform) { | ||||
|         bh_memcpy_s(new_argv, size, argv, size); | ||||
|         bh_memcpy_s(new_argv, (uint32)size, argv, (uint32)size); | ||||
|     } | ||||
|     else { | ||||
|         for (param_i = 0; param_i < func_type->param_count && argv_i < argc | ||||
|  |  | |||
|  | @ -787,7 +787,7 @@ wasm_interp_call_func_native(WASMModuleInstance *module_inst, | |||
| 
 | ||||
|     wasm_exec_env_set_cur_frame(exec_env, frame); | ||||
| 
 | ||||
|     cur_func_index = cur_func - module_inst->functions; | ||||
|     cur_func_index = (uint32)(cur_func - module_inst->functions); | ||||
|     bh_assert(cur_func_index < module_inst->module->import_function_count); | ||||
|     native_func_pointer = module_inst->import_func_ptrs[cur_func_index]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -854,7 +854,7 @@ wasm_interp_call_func_native(WASMModuleInstance *module_inst, | |||
| 
 | ||||
|     wasm_exec_env_set_cur_frame(exec_env, frame); | ||||
| 
 | ||||
|     cur_func_index = cur_func - module_inst->functions; | ||||
|     cur_func_index = (uint32)(cur_func - module_inst->functions); | ||||
|     bh_assert(cur_func_index < module_inst->module->import_function_count); | ||||
|     native_func_pointer = module_inst->import_func_ptrs[cur_func_index]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -28,6 +28,7 @@ usage () | |||
|         echo "        $0 $QEMU_XTENSA_TARGET" | ||||
|         echo "        $0 $QEMU_RISCV64_TARGET" | ||||
|         echo "        $0 $QEMU_RISCV32_TARGET" | ||||
|         echo "        $0 $QEMU_ARC_TARGET" | ||||
|         exit 1 | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Wenyong Huang
						Wenyong Huang