Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TianlongLiang committed Jan 8, 2024
1 parent 8e63f9e commit 91a26f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/iwasm/compilation/aot_emit_aot_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2578,7 +2578,7 @@ aot_emit_func_section(uint8 *buf, uint8 *buf_end, uint32 *p_offset,
EMIT_U32(local_ref_flags_cell_num);
for (j = 0; j < func_type->param_count; ++j) {
if (!aot_emit_ref_flag(buf, buf_end, &offset,
func_type->types[i]))
func_type->types[j]))
return false;
}
for (; j < 2; j++)
Expand All @@ -2595,13 +2595,13 @@ aot_emit_func_section(uint8 *buf, uint8 *buf_end, uint32 *p_offset,
/* emit local_ref_flag for param variables */
for (j = 0; j < func_type->param_count; j++) {
if (!aot_emit_ref_flag(buf, buf_end, &offset,
func_type->types[i]))
func_type->types[j]))
return false;
}
/* emit local_ref_flag for local variables */
for (j = 0; j < funcs[i]->local_count; j++) {
if (!aot_emit_ref_flag(buf, buf_end, &offset,
funcs[i]->local_types_wp[i]))
funcs[i]->local_types_wp[j]))
return false;
}
}
Expand Down

0 comments on commit 91a26f9

Please sign in to comment.