mirror of https://github.com/golang/go.git
rename
Change-Id: Ib28ce114c708c94c478ef04d17471b392e5c0960
This commit is contained in:
parent
62cb36f7d9
commit
38d219b81f
|
|
@ -366,6 +366,6 @@ func bytealg_MakeNoZero(len int) []byte {
|
|||
if uintptr(len) > maxAlloc {
|
||||
panicmakeslicelen()
|
||||
}
|
||||
l := roundupsize(uintptr(len), true)
|
||||
return unsafe.Slice((*byte)(mallocgc(uintptr(l), nil, false)), l)[:len]
|
||||
cap := roundupsize(uintptr(len), true)
|
||||
return unsafe.Slice((*byte)(mallocgc(uintptr(cap), nil, false)), cap)[:len]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue