reflect, runtime: gofmt

Change-Id: I5437b3a36181373d8ff33225d7520ab321459de9
Reviewed-on: https://go-review.googlesource.com/2084
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
mattn 2014-12-26 11:44:55 +09:00 committed by Brad Fitzpatrick
parent 1c0c611fc2
commit e26e3fa25a
2 changed files with 6 additions and 6 deletions

View file

@ -34,13 +34,13 @@ func FuncLayout(t Type, rcvr Type) (frametype Type, argSize, retOffset uintptr,
for i := uint32(0); i < s.n; i += 2 {
stack = append(stack, s.data[i/8]>>(i%8)&3)
}
if ft.kind & kindGCProg != 0 {
if ft.kind&kindGCProg != 0 {
panic("can't handle gc programs")
}
gcdata := (*[1000]byte)(ft.gc[0])
for i := uintptr(0); i < ft.size/ptrSize; i++ {
gc = append(gc, gcdata[i/2] >> (i%2*4+2) & 3)
gc = append(gc, gcdata[i/2]>>(i%2*4+2)&3)
}
ptrs = ft.kind & kindNoPointers == 0
ptrs = ft.kind&kindNoPointers == 0
return
}