]> Cypherpunks repositories - gostls13.git/commit
cmd/fix: add intermediate cast for *C.CFTypeRef <-> *unsafe.Pointer
authorKeith Randall <khr@golang.org>
Thu, 18 Jan 2018 02:46:47 +0000 (18:46 -0800)
committerKeith Randall <khr@golang.org>
Fri, 19 Jan 2018 16:04:54 +0000 (16:04 +0000)
commit4555ed2e5ef029cafb8040710537f0ebffd41ad6
tree770af3bba718c28a3658aaedff27723dd13f2b32
parent4dc1c491b04e90a502ce041f0fd757c91915bff4
cmd/fix: add intermediate cast for *C.CFTypeRef <-> *unsafe.Pointer

When casting between *C.CFTypeRef and *unsafe.Pointer, we used to be
able to do the cast directly. Now with C.CFTypeRef being a uintptr
instead of an unsafe.Pointer, we need an intermediate cast.

Add the insertion of the intermediate cast to the cftype fix module.

Fixes #23091

Change-Id: I891be2f4a08cfd7de1cc4c6ab841b1e0d8c388a6
Reviewed-on: https://go-review.googlesource.com/88175
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/fix/cftype.go
src/cmd/fix/cftype_test.go