Clear Windows compile warnings (#1530)
This commit is contained in:
@ -696,9 +696,9 @@ load_custom_section(const uint8 *buf, const uint8 *buf_end, AOTModule *module,
|
||||
}
|
||||
|
||||
section->name_addr = (char *)section_name;
|
||||
section->name_len = strlen(section_name);
|
||||
section->name_len = (uint32)strlen(section_name);
|
||||
section->content_addr = (uint8 *)p;
|
||||
section->content_len = p_end - p;
|
||||
section->content_len = (uint32)(p_end - p);
|
||||
|
||||
section->next = module->custom_section_list;
|
||||
module->custom_section_list = section;
|
||||
|
||||
@ -3087,7 +3087,7 @@ aot_dump_call_stack(WASMExecEnv *exec_env, bool print, char *buf, uint32 len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
total_frames = bh_vector_size(module_inst->frames.ptr);
|
||||
total_frames = (uint32)bh_vector_size(module_inst->frames.ptr);
|
||||
if (total_frames == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -4650,7 +4650,7 @@ wasm_runtime_dump_line_buf_impl(const char *line_buf, bool dump_or_print,
|
||||
return dump_len;
|
||||
}
|
||||
else {
|
||||
return strlen(line_buf);
|
||||
return (uint32)strlen(line_buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -2907,7 +2907,7 @@ load_user_section(const uint8 *buf, const uint8 *buf_end, WASMModule *module,
|
||||
section->name_addr = (char *)p;
|
||||
section->name_len = name_len;
|
||||
section->content_addr = (uint8 *)(p + name_len);
|
||||
section->content_len = p_end - p - name_len;
|
||||
section->content_len = (uint32)(p_end - p - name_len);
|
||||
|
||||
section->next = module->custom_section_list;
|
||||
module->custom_section_list = section;
|
||||
|
||||
@ -3087,7 +3087,7 @@ wasm_interp_dump_call_stack(struct WASMExecEnv *exec_env, bool print, char *buf,
|
||||
return 0;
|
||||
}
|
||||
|
||||
total_frames = bh_vector_size(module_inst->frames);
|
||||
total_frames = (uint32)bh_vector_size(module_inst->frames);
|
||||
if (total_frames == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user