diff options
| author | David Chase <drchase@google.com> | 2023-04-14 14:09:12 -0400 |
|---|---|---|
| committer | David Chase <drchase@google.com> | 2023-05-10 22:43:30 +0000 |
| commit | 639957eb661c0c99c000bfc2e79bc750b02abd1a (patch) | |
| tree | 017688d9c0eb9ec20baa56d24ad651b0b5de1f1e /src/runtime/cgocheck.go | |
| parent | a8515119474b621ae39ad8af9a2ad4c8a7732a6c (diff) | |
| download | go-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/cgocheck.go')
| -rw-r--r-- | src/runtime/cgocheck.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/cgocheck.go b/src/runtime/cgocheck.go index cc11ef0469..1acf0f9233 100644 --- a/src/runtime/cgocheck.go +++ b/src/runtime/cgocheck.go @@ -249,7 +249,7 @@ func cgoCheckUsingType(typ *_type, src unsafe.Pointer, off, size uintptr) { at := (*arraytype)(unsafe.Pointer(typ)) for i := uintptr(0); i < at.Len; i++ { if off < at.Elem.Size_ { - cgoCheckUsingType((*_type)(at.Elem), src, off, size) + cgoCheckUsingType(toType(at.Elem), src, off, size) } src = add(src, at.Elem.Size_) skipped := off |
