mirror of
https://github.com/golang/go
synced 2024-11-22 04:04:40 -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);
|
||||
|
||||
c = (Hchan*)by;
|
||||
by += n;
|
||||
runtime·addfinalizer(c, destroychan, 0);
|
||||
|
||||
c->elemsize = elem->size;
|
||||
|
Loading…
Reference in New Issue
Block a user