1
0
mirror of https://github.com/golang/go synced 2024-11-19 08:34: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:
Brad Fitzpatrick 2014-12-16 18:09:38 +11:00
parent 50bc3d5bbc
commit 895e48cac5

View File

@ -1908,7 +1908,7 @@ func (bv *bitVector) append2(bits uint8) {
func addTypeBits(bv *bitVector, offset *uintptr, t *rtype) { func addTypeBits(bv *bitVector, offset *uintptr, t *rtype) {
*offset = align(*offset, uintptr(t.align)) *offset = align(*offset, uintptr(t.align))
if t.kind&kindNoPointers != 0 { if !t.pointers() {
*offset += t.size *offset += t.size
return return
} }