From: Rob Pike Date: Wed, 18 Nov 2009 21:43:48 +0000 (-0800) Subject: slicecopy was always using 16 (sizeof slice) for the size instead of size of element. X-Git-Tag: weekly.2009-12-07~214 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=7518613430e2162c251d6ad10c8c2859a5fe178e;p=gostls13.git slicecopy was always using 16 (sizeof slice) for the size instead of size of element. R=rsc CC=ken2, golang-dev https://golang.org/cl/156083 --- diff --git a/src/cmd/gc/walk.c b/src/cmd/gc/walk.c index bb100b9716..9f3c81e194 100644 --- a/src/cmd/gc/walk.c +++ b/src/cmd/gc/walk.c @@ -911,7 +911,7 @@ walkexpr(Node **np, NodeList **init) argtype(fn, n->right->type); n = mkcall1(fn, n->type, init, n->left, n->right, - nodintconst(n->left->type->width)); + nodintconst(n->left->type->type->width)); goto ret; case OCLOSE: