Fix compilation errors on esp-idf platform (#3224)

The issue was reported in #3208.
This commit is contained in:
Wenyong Huang
2024-03-14 21:31:44 +08:00
committed by GitHub
parent de803b2beb
commit 5e2011ca1d
5 changed files with 17 additions and 5 deletions

View File

@ -11421,7 +11421,7 @@ re_scan:
case WASM_OP_BR_TABLE:
{
uint32 depth, default_arity, arity = 0;
uint32 depth = 0, default_arity, arity = 0;
BranchBlock *target_block;
BlockType *target_block_type;
#if WASM_ENABLE_FAST_INTERP == 0

View File

@ -426,7 +426,7 @@ sprintf_wrapper(wasm_exec_env_t exec_env, char *str, const char *format,
if (!wasm_runtime_get_native_addr_range(module_inst, (uint8 *)str, NULL,
&native_end_offset)) {
wasm_runtime_set_exception(module_inst, "out of bounds memory access");
return false;
return 0;
}
ctx.str = str;