]> Cypherpunks repositories - gostls13.git/commit
misc/cgo: prepare for 64-bit ints
authorRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 18:58:45 +0000 (14:58 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Sep 2012 18:58:45 +0000 (14:58 -0400)
commit0a006b4923c129a4b699f5ba17114fc98e20ce4c
treeec1194b84b956db64a1988744b98633a6e2c3837
parent0b08c9483f5f447083616b7b5e6ddf04edffc379
misc/cgo: prepare for 64-bit ints

In a few places, the existing cgo tests assume that a
Go int is the same as a C int. Making int 64 bits wide
on 64-bit platforms violates this assumption.
Change that code to assume that Go int32 and C int
are the same instead. That's still not great, but it's better,
and I am unaware of any systems we run on where it is not true.

Update #2188.

R=iant, r
CC=golang-dev
https://golang.org/cl/6552064
misc/cgo/life/life.go
misc/cgo/life/main.go
misc/cgo/test/issue1560.go