aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/cgocall.go
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2023-04-14 14:09:12 -0400
committerDavid Chase <drchase@google.com>2023-05-10 22:43:30 +0000
commit639957eb661c0c99c000bfc2e79bc750b02abd1a (patch)
tree017688d9c0eb9ec20baa56d24ad651b0b5de1f1e /src/runtime/cgocall.go
parenta8515119474b621ae39ad8af9a2ad4c8a7732a6c (diff)
downloadgo-639957eb661c0c99c000bfc2e79bc750b02abd1a.tar.xz
internal/reflectlite, runtime: move more constants and types into internal/abi
Change-Id: If5da1057ead34eb3e4c7f42bbe6ad3d350b97725 Reviewed-on: https://go-review.googlesource.com/c/go/+/484856 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/runtime/cgocall.go')
-rw-r--r--src/runtime/cgocall.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/cgocall.go b/src/runtime/cgocall.go
index e92b7e4fed..e2e37284a2 100644
--- a/src/runtime/cgocall.go
+++ b/src/runtime/cgocall.go
@@ -466,11 +466,11 @@ func cgoCheckArg(t *_type, p unsafe.Pointer, indir, top bool, msg string) {
if at.Len != 1 {
throw("can't happen")
}
- cgoCheckArg((*_type)(at.Elem), p, at.Elem.Kind_&kindDirectIface == 0, top, msg)
+ cgoCheckArg(toType(at.Elem), p, at.Elem.Kind_&kindDirectIface == 0, top, msg)
return
}
for i := uintptr(0); i < at.Len; i++ {
- cgoCheckArg((*_type)(at.Elem), p, true, top, msg)
+ cgoCheckArg(toType(at.Elem), p, true, top, msg)
p = add(p, at.Elem.Size_)
}
case kindChan, kindMap: