mirror of
https://github.com/golang/go
synced 2024-11-25 19:07:57 -07:00
runtime: fix set and not used in chan.c
R=rsc CC=golang-dev https://golang.org/cl/4416042
This commit is contained in:
parent
2fca1a4049
commit
9c3ecb3617
@ -121,7 +121,6 @@ runtime·makechan_c(Type *elem, int64 hint)
|
|||||||
by = runtime·mal(n + hint*elem->size);
|
by = runtime·mal(n + hint*elem->size);
|
||||||
|
|
||||||
c = (Hchan*)by;
|
c = (Hchan*)by;
|
||||||
by += n;
|
|
||||||
runtime·addfinalizer(c, destroychan, 0);
|
runtime·addfinalizer(c, destroychan, 0);
|
||||||
|
|
||||||
c->elemsize = elem->size;
|
c->elemsize = elem->size;
|
||||||
|
Loading…
Reference in New Issue
Block a user