Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 29, 2024
1 parent f151626 commit cdfbf8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/gen/c/assign.v
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ fn (mut g Gen) assign_stmt(node_ ast.AssignStmt) {
g.type_resolver.type_map['g.${left.name}.${left.obj.pos.pos}'] = var_type
g.assign_ct_type = var_type
} else if val.name == 'map' && val.args.len > 0
&& val.args[0].expr is ast.AsCast {
&& val.args[0].expr is ast.AsCast && val.args[0].expr.typ.has_flag(.generic) {
var_type = g.table.find_or_register_array(g.unwrap_generic((val.args[0].expr as ast.AsCast).typ))
val_type = var_type
left.obj.typ = var_type
Expand Down

0 comments on commit cdfbf8a

Please sign in to comment.