Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 25, 2025
1 parent 3eaa872 commit fa6d50c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/v/gen/c/consts_and_globals.v
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ fn (mut g Gen) const_decl_init_later_msvc_string_fixed_array(mod string, name st
elem_typ := elem_expr.obj.typ
if g.table.final_sym(elem_typ).kind == .array_fixed {
elem_styp := g.styp(elem_expr.obj.typ)
init.writeln(g.expr_string_surround('\tmemcpy(${cname}[${i}], (${elem_styp})',
elem_expr, ', sizeof(${elem_styp}));'))
init.writeln(g.expr_string_surround('\tmemcpy(${cname}[${i}], ', elem_expr,
', sizeof(${elem_styp}));'))
} else {
init.writeln(g.expr_string_surround('\t${cname}[${i}] = ', elem_expr,
';'))
Expand Down

0 comments on commit fa6d50c

Please sign in to comment.