]> Cypherpunks repositories - gostls13.git/commit
runtime: support cgo index into pointer-to-array
authorIan Lance Taylor <iant@golang.org>
Thu, 24 Oct 2024 00:27:44 +0000 (17:27 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 24 Oct 2024 14:34:01 +0000 (14:34 +0000)
commit76f320836720635b30896d91493c02c1f9578cca
tree0179be460f337ccef350451187252e19b61a1f31
parent4646556ba49367b3ea19181ac7d5f8ba1b5928b8
runtime: support cgo index into pointer-to-array

We were missing a case for calling a C function with an index
into a pointer-to-array.

Fixes #70016

Change-Id: I9c74d629e58722813c1aaa0f0dc225a5a64d111b
Reviewed-on: https://go-review.googlesource.com/c/go/+/621576
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/cgo/internal/testerrors/ptr_test.go
src/runtime/cgocall.go