Skip to content

Commit 9322389

Browse files
committed
Fix data format according to warnings
1 parent 747ebed commit 9322389

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/parser.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,9 +1381,9 @@ bool is_compound_literal_array_temp(var_t *var)
13811381
}
13821382

13831383
var_t *scalarize_array_literal(block_t *parent,
1384-
basic_block_t **bb,
1385-
var_t *array_var,
1386-
type_t *hint_type)
1384+
basic_block_t **bb,
1385+
var_t *array_var,
1386+
type_t *hint_type)
13871387
{
13881388
if (!is_compound_literal_array_temp(array_var))
13891389
return array_var;
@@ -4533,8 +4533,8 @@ basic_block_t *read_body_statement(block_t *parent, basic_block_t *bb)
45334533

45344534
var_t *rhs = expr_result;
45354535
if (!var->ptr_level && var->array_size == 0)
4536-
rhs =
4537-
scalarize_array_literal(parent, bb, rhs, var->type);
4536+
rhs = scalarize_array_literal(parent, &bb, rhs,
4537+
var->type);
45384538

45394539
rs1 = resize_var(parent, &bb, rhs, var);
45404540
add_insn(parent, bb, OP_assign, var, rs1, NULL, 0, NULL);
@@ -4631,7 +4631,7 @@ basic_block_t *read_body_statement(block_t *parent, basic_block_t *bb)
46314631
var_t *expr_result = opstack_pop();
46324632
var_t *rhs = expr_result;
46334633
if (!nv->ptr_level && nv->array_size == 0)
4634-
rhs = scalarize_array_literal(parent, bb, rhs,
4634+
rhs = scalarize_array_literal(parent, &bb, rhs,
46354635
nv->type);
46364636

46374637
rs1 = resize_var(parent, &bb, rhs, nv);

0 commit comments

Comments
 (0)