Skip to content

Commit 9bc33a0

Browse files
committed
fix logic
1 parent e03a7d6 commit 9bc33a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/iwasm/interpreter/wasm_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8430,7 +8430,7 @@ static bool
84308430
check_dynamic_offset_pop(WASMLoaderContext *ctx, uint32 cells)
84318431
{
84328432
if (ctx->dynamic_offset < 0
8433-
|| ((uint32)ctx->dynamic_offset < cells && ctx->dynamic_offset > 0))
8433+
|| (ctx->dynamic_offset > 0 && (uint32)ctx->dynamic_offset < cells))
84348434
return false;
84358435
return true;
84368436
}

0 commit comments

Comments
 (0)