]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: use function arg type for _cgoCheckPointerN function
authorIan Lance Taylor <iant@golang.org>
Thu, 2 Jun 2016 04:32:47 +0000 (21:32 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 9 Jun 2016 16:02:03 +0000 (16:02 +0000)
commit837984f37291f4fc48f9c99b65b0ab3f050bf4b9
tree596e2ccd082bc8206772aef44acbbfcdd08ed0c5
parent894803c11e4eab128869be759463510580a68602
cmd/cgo: use function arg type for _cgoCheckPointerN function

When cgo writes a _cgoCheckPointerN function to handle unsafe.Pointer,
use the function's argument type rather than interface{}. This permits
type errors to be detected at build time rather than run time.

Fixes #13830.

Change-Id: Ic7090905e16b977e2379670e0f83640dc192b565
Reviewed-on: https://go-review.googlesource.com/23675
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
misc/cgo/errors/issue13830.go [new file with mode: 0644]
misc/cgo/errors/test.bash
src/cmd/cgo/out.go