Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Oct 9, 2024
1 parent d4fe3e9 commit 8b740ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/cgen.v
Original file line number Diff line number Diff line change
Expand Up @@ -5641,7 +5641,7 @@ fn (mut g Gen) return_stmt(node ast.Return) {
continue
}
g.write('.arg${arg_idx}=')
if g.table.final_sym(node.types[i]).kind == .array_fixed {
if expr !is ast.ArrayInit && g.table.final_sym(node.types[i]).kind == .array_fixed {
line := g.go_before_last_stmt().trim_space()
expr_styp := g.typ(node.types[i])
g.write('memcpy(&${tmpvar}.arg${arg_idx}, ')
Expand Down

0 comments on commit 8b740ab

Please sign in to comment.