1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:20:32 -07:00
go/misc/cgo/life
Russ Cox 0a006b4923 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
2012-09-24 14:58:45 -04:00
..
c-life.c cgo: handle references to symbols in shared libraries 2010-12-17 11:37:11 -08:00
life.go misc/cgo: prepare for 64-bit ints 2012-09-24 14:58:45 -04:00
life.h cgo: handle references to symbols in shared libraries 2010-12-17 11:37:11 -08:00
main.go misc/cgo: prepare for 64-bit ints 2012-09-24 14:58:45 -04:00
main.out misc/cgo/{life,stdio}, test/run.go: use test/run.go to do the cgo tests 2012-08-07 09:38:35 +08:00