diff --git a/core/iwasm/aot/aot_loader.c b/core/iwasm/aot/aot_loader.c index f938012ae..fca926abb 100644 --- a/core/iwasm/aot/aot_loader.c +++ b/core/iwasm/aot/aot_loader.c @@ -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; diff --git a/core/iwasm/aot/aot_runtime.c b/core/iwasm/aot/aot_runtime.c index 6213bce1f..c1ae5e418 100644 --- a/core/iwasm/aot/aot_runtime.c +++ b/core/iwasm/aot/aot_runtime.c @@ -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; } diff --git a/core/iwasm/common/wasm_runtime_common.c b/core/iwasm/common/wasm_runtime_common.c index c1528c58a..1a4b1a72b 100644 --- a/core/iwasm/common/wasm_runtime_common.c +++ b/core/iwasm/common/wasm_runtime_common.c @@ -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); } } diff --git a/core/iwasm/interpreter/wasm_loader.c b/core/iwasm/interpreter/wasm_loader.c index ab22d2948..e5941b7b3 100644 --- a/core/iwasm/interpreter/wasm_loader.c +++ b/core/iwasm/interpreter/wasm_loader.c @@ -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; diff --git a/core/iwasm/interpreter/wasm_runtime.c b/core/iwasm/interpreter/wasm_runtime.c index db8eccb7e..f085e7858 100644 --- a/core/iwasm/interpreter/wasm_runtime.c +++ b/core/iwasm/interpreter/wasm_runtime.c @@ -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; } diff --git a/tests/wamr-test-suites/test_wamr.sh b/tests/wamr-test-suites/test_wamr.sh index 16f754d6e..3434e2021 100755 --- a/tests/wamr-test-suites/test_wamr.sh +++ b/tests/wamr-test-suites/test_wamr.sh @@ -219,7 +219,7 @@ function unit_test() make -ki clean | true cmake ${compile_flag} ${WORK_DIR}/../../unit && make -j 4 if [ "$?" != 0 ];then - echo -e "\033[31mbuild unit test failed, you may need to change wamr into dev/aot branch and ensure llvm is built \033[0m" + echo -e "build unit test failed, you may need to change wamr into dev/aot branch and ensure llvm is built" exit 1 fi @@ -486,7 +486,7 @@ function build_iwasm_with_cfg() fi if [ "$?" != 0 ];then - echo -e "\033[31mbuild iwasm failed \033[0m" + echo -e "build iwasm failed" exit 1 fi } @@ -644,7 +644,7 @@ else # Add more suites here fi -echo -e "\033[32mTest finish. Reports are under ${REPORT_DIR} \033[0m" +echo -e "Test finish. Reports are under ${REPORT_DIR}" DEBUG set +xv pipefail echo "TEST SUCCESSFUL" exit 0