]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: fix C.complexfloat and C.complexdouble
authorMatthew Dempsky <mdempsky@google.com>
Wed, 25 Nov 2015 21:09:14 +0000 (13:09 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 25 Nov 2015 23:06:59 +0000 (23:06 +0000)
commit10cb39afc4e81d126c71153dba7b9f1878bae61a
tree5fced68400b9ee4c338abdeed2747610c123f0ae
parentde640d369d69a53b85c27cd80d716c157aa23e74
cmd/cgo: fix C.complexfloat and C.complexdouble

This also fixes an unintended behavior where C's "complex float" and
"complex double" types were interchangeable with Go's "complex64" and
"complex128" types.

Fixes #13402.

Change-Id: I73f96d9a4772088d495073783c6982e9634430e8
Reviewed-on: https://go-review.googlesource.com/17208
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/issue13402.go [new file with mode: 0644]
misc/cgo/test/issue8694.go
src/cmd/cgo/doc.go
src/cmd/cgo/gcc.go