Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 18, 2024
1 parent 472651a commit 0c953d4
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 @@ -2584,7 +2584,7 @@ fn (mut g Gen) expr_with_fixed_array(expr ast.Expr, got_type_raw ast.Type, expec
g.writeln(', sizeof(${g.styp(val_typ)}));')
}
} else if expr is ast.CallExpr {
// return AliasToFixedArray(...)
// return var.call() where returns is option/result fixed array
g.writeln('${styp} ${tmp_var} = {0};')
g.write('memcpy(&${tmp_var}.data, ')
g.expr(expr)
Expand Down

0 comments on commit 0c953d4

Please sign in to comment.