]> Cypherpunks repositories - gostls13.git/commitdiff
another [] fix
authorRuss Cox <rsc@golang.org>
Fri, 19 Dec 2008 05:15:26 +0000 (21:15 -0800)
committerRuss Cox <rsc@golang.org>
Fri, 19 Dec 2008 05:15:26 +0000 (21:15 -0800)
R=ken
OCL=21566
CL=21566

src/cmd/gc/walk.c

index 54645438a0173f6b491bd8b7919e1b4af2bb06c6..55fd025f3a3bbf1924e58e0ac13ee5a2ac3eb844 100644 (file)
@@ -962,7 +962,7 @@ loop:
                        tempname(nvar, ptrto(n->left->type));
 
                        nnew = nod(ONEW, N, N);
-                       nnew->type = nvar->type;
+                       nnew->type = n->left->type;
                        nnew = newcompat(nnew);
 
                        nas = nod(OAS, nvar, nnew);