runtime: correctly type interface data.

The backing memory for >1 word interfaces was being scanned
conservatively.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/94000043
This commit is contained in:
Keith Randall 2014-05-01 09:37:55 -04:00
parent 61fac6845a
commit e9977dad45
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ copyin(Type *t, void *src, void **dst)
if(size <= sizeof(*dst))
alg->copy(size, dst, src);
else {
p = runtime·mal(size);
p = runtime·cnew(t);
alg->copy(size, p, src);
*dst = p;
}