From 78fc888e643eebbe812460506b978a052e930568 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 18 Dec 2008 21:15:26 -0800 Subject: [PATCH] another [] fix R=ken OCL=21566 CL=21566 --- src/cmd/gc/walk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index 54645438a01..55fd025f3a3 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -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);