]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/errors: test that the Go rune type is not identical to C.int
authorBryan C. Mills <bcmills@google.com>
Wed, 13 Sep 2017 21:21:07 +0000 (17:21 -0400)
committerBryan Mills <bcmills@google.com>
Thu, 14 Sep 2017 02:24:39 +0000 (02:24 +0000)
commit107744e94c4e62272962eba9195bc14a7eb69a09
treedaa201648f5004cfe7b33b4913259717d76a76ed
parent814d92230a6befef18084fdf62431a9e0ecab7d4
misc/cgo/errors: test that the Go rune type is not identical to C.int

rune has a well-defined size, but C.int is implementation-specified.
Using one as the other should require an explicit conversion.

updates #13467

Change-Id: I53ab2478427dca790efdcc197f6b8d9fbfbd1847
Reviewed-on: https://go-review.googlesource.com/63730
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/errors/errors_test.go
misc/cgo/errors/src/issue13467.go [new file with mode: 0644]