]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: increase s390x int type size to 8 bytes
authorMichael Munday <munday@ca.ibm.com>
Fri, 8 Apr 2016 17:02:49 +0000 (13:02 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Apr 2016 20:31:58 +0000 (20:31 +0000)
The size of the int type in Go on s390x is 8 bytes, not 4.

Change-Id: I1a71ce8c9925f3499abb61c1aa4f6fa2d2ec0d7e
Reviewed-on: https://go-review.googlesource.com/21760
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/cgo/main.go

index 5e863549d693135f2c2fc8da9b2376f95f7b576b..2dc36c20db91e2e9073d5b19be6b452d9c9be797 100644 (file)
@@ -156,7 +156,7 @@ var intSizeMap = map[string]int64{
        "ppc64":    8,
        "ppc64le":  8,
        "s390":     4,
-       "s390x":    4,
+       "s390x":    8,
 }
 
 var cPrefix string