Commit 75186134 authored by Rob Pike's avatar Rob Pike

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
parent ef8f483c
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment