Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 17, 2024
1 parent bef729a commit 1f638b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/gen/c/array.v
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ fn (mut g Gen) fixed_array_init(node ast.ArrayInit, array_type Type, var_name st
elem_info := elem_sym.array_fixed_info()
g.fixed_array_var_init(g.expr_string(expr), expr.is_auto_deref_var(),
elem_info.elem_type, elem_info.size)
} else if expr is ast.CallExpr {
} else if elem_sym.kind == .array_fixed && expr is ast.CallExpr
&& g.table.final_sym(expr.return_type).kind == .array_fixed {
elem_info := elem_sym.array_fixed_info()
tmp_var := g.expr_with_var(expr, node.expr_types[i], node.expr_types[i])
g.fixed_array_var_init(tmp_var, false, elem_info.elem_type, elem_info.size)
Expand Down

0 comments on commit 1f638b1

Please sign in to comment.