mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: eliminate unnecessary type conversions
Automated refactoring produced using github.com/mdempsky/unconvert. Change-Id: Iacf871a4f221ef17f48999a464ab2858b2bbaa90 Reviewed-on: https://go-review.googlesource.com/20071 Reviewed-by: Austin Clements <austin@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
1ec4f227f4
commit
a03bdc3e6b
36 changed files with 87 additions and 87 deletions
|
|
@ -234,7 +234,7 @@ type childInfo struct {
|
|||
// dump kinds & offsets of interesting fields in bv
|
||||
func dumpbv(cbv *bitvector, offset uintptr) {
|
||||
bv := gobv(*cbv)
|
||||
for i := uintptr(0); i < uintptr(bv.n); i++ {
|
||||
for i := uintptr(0); i < bv.n; i++ {
|
||||
if bv.bytedata[i/8]>>(i%8)&1 == 1 {
|
||||
dumpint(fieldKindPtr)
|
||||
dumpint(uint64(offset + i*sys.PtrSize))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue