Skip to content

Commit d58586a

Browse files
fix code and comment typo (#4802)
1 parent 6f62820 commit d58586a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/iwasm/aot/aot_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ destroy_init_expr(InitializerExpression *expr)
982982
#endif
983983

984984
#if WASM_ENABLE_EXTENDED_CONST_EXPR != 0
985-
// free left expr and right expr for binary oprand
985+
/* free left expr and right expr for binary operand */
986986
if (!is_expr_binary_op(expr->init_expr_type)) {
987987
return;
988988
}

core/iwasm/interpreter/wasm_loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ destroy_init_expr(WASMModule *module, InitializerExpression *expr)
701701
#endif
702702

703703
#if WASM_ENABLE_EXTENDED_CONST_EXPR != 0
704-
// free left expr and right exprs for binary oprand
704+
/* free left expr and right exprs for binary operand */
705705
if (!is_expr_binary_op(expr->init_expr_type)) {
706706
return;
707707
}

core/iwasm/interpreter/wasm_mini_loader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ destroy_const_expr_stack(ConstExprContext *ctx, bool free_exprs)
375375
static void
376376
destroy_init_expr(InitializerExpression *expr)
377377
{
378-
// free left expr and right exprs for binary oprand
379-
if (is_expr_binary_op(expr->init_expr_type)) {
378+
/* free left expr and right exprs for binary operand */
379+
if (!is_expr_binary_op(expr->init_expr_type)) {
380380
return;
381381
}
382382
if (expr->u.binary.l_expr) {

0 commit comments

Comments
 (0)