@@ -1095,14 +1095,14 @@ pub fn (mut g Gen) set_with_expr(init ast.Expr, v Var) {
10951095 if init.has_len || init.has_cap || init.has_init {
10961096 // Array init with named params: []int{len: 5, cap: 10, init: 42}
10971097 // Use __new_array_with_default(len, cap, elm_size, default_value_ptr)
1098-
1098+
10991099 // Push len (required or 0)
11001100 if init.has_len {
11011101 g.expr (init.len_expr, ast.int_type)
11021102 } else {
11031103 g.literalint (0 , ast.int_type)
11041104 }
1105-
1105+
11061106 // Push cap (or use len if not specified)
11071107 if init.has_cap {
11081108 g.expr (init.cap_expr, ast.int_type)
@@ -1111,28 +1111,28 @@ pub fn (mut g Gen) set_with_expr(init ast.Expr, v Var) {
11111111 } else {
11121112 g.literalint (0 , ast.int_type)
11131113 }
1114-
1114+
11151115 // Push element_size
11161116 g.literalint (elm_size, ast.int_type)
1117-
1117+
11181118 // Push init value pointer (or 0 for no default)
11191119 if init.has_init {
11201120 // Allocate space on stack for init value
11211121 mut init_var := g.new_local ('__init' , elm_typ)
11221122 init_var_addr := g.ensure_var_addressable (mut init_var)
1123-
1123+
11241124 // Store init value
11251125 g.get (init_var_addr)
11261126 g.expr (init.init_expr, elm_typ)
11271127 g.store (elm_typ, 0 )
1128-
1128+
11291129 // Push address of init value
11301130 g.get (init_var_addr)
11311131 } else {
11321132 g.literalint (0 , ast.int_type)
11331133 }
1134-
1135- g.func.call ('builtin____new_array_with_default ' )
1134+
1135+ g.func.call ('__new_array_with_default ' )
11361136 } else {
11371137 // Regular array initialization: [1, 2, 3]
11381138 // Calculate array length
@@ -1142,7 +1142,7 @@ pub fn (mut g Gen) set_with_expr(init ast.Expr, v Var) {
11421142 g.literalint (arr_len, ast.int_type) // len
11431143 g.literalint (arr_len, ast.int_type) // cap (same as len for now)
11441144 g.literalint (elm_size, ast.int_type) // element_size
1145- g.func.call ('builtin____new_array ' )
1145+ g.func.call ('__new_array ' )
11461146 }
11471147
11481148 // Store the returned array struct
0 commit comments