aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/runtime/cgocall.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/runtime/cgocall.go')
-rw-r--r--libgo/go/runtime/cgocall.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/runtime/cgocall.go b/libgo/go/runtime/cgocall.go
index efd0e24..79fe65c 100644
--- a/libgo/go/runtime/cgocall.go
+++ b/libgo/go/runtime/cgocall.go
@@ -227,7 +227,7 @@ func cgoCheckUnknownPointer(p unsafe.Pointer, msg string) (base, i uintptr) {
hbits := heapBitsForAddr(base)
n := span.elemsize
for i = uintptr(0); i < n; i += sys.PtrSize {
- if i != 1*sys.PtrSize && !hbits.morePointers() {
+ if !hbits.morePointers() {
// No more possible pointers.
break
}