mirror of
https://github.com/golang/go
synced 2024-11-19 06:04:39 -07:00
reflect: remove a double negative, use the rtype.pointers method for clarity
Change-Id: Ia24e9f0da1622cededa17b2c54ff9e4bb80cf946 Reviewed-on: https://go-review.googlesource.com/1633 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
50bc3d5bbc
commit
895e48cac5
@ -1908,7 +1908,7 @@ func (bv *bitVector) append2(bits uint8) {
|
||||
|
||||
func addTypeBits(bv *bitVector, offset *uintptr, t *rtype) {
|
||||
*offset = align(*offset, uintptr(t.align))
|
||||
if t.kind&kindNoPointers != 0 {
|
||||
if !t.pointers() {
|
||||
*offset += t.size
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user