Cleanup output format warnings (#904)
Use `PRIxxx` related macros to format the output strings so as to clear compile warnings, e.g. PRIu32, PRId32, PRIX32, PRIX64 and so on. And add the related macro definitions in platform_common.h if they are not defined, as some compilers might not support them.
This commit is contained in:
@ -3733,8 +3733,9 @@ wasm_interp_call_wasm(WASMModuleInstance *module_inst, WASMExecEnv *exec_env,
|
||||
if (argc < function->param_cell_num) {
|
||||
char buf[128];
|
||||
snprintf(buf, sizeof(buf),
|
||||
"invalid argument count %u, must be no smaller than %u", argc,
|
||||
function->param_cell_num);
|
||||
"invalid argument count %" PRIu32
|
||||
", must be no smaller than %" PRIu32,
|
||||
argc, (uint32)function->param_cell_num);
|
||||
wasm_set_exception(module_inst, buf);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user