From: Austin Clements Date: Tue, 23 Dec 2014 02:18:09 +0000 (-0500) Subject: misc/cgo: fix issue 9400 test on 386 X-Git-Tag: go1.5beta1~2542 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=200e7bf6b13a16452e5add94bb641ed434526e37;p=gostls13.git misc/cgo: fix issue 9400 test on 386 issue9400_linux.go did not build on 386 because it used a constant that was larger than a 32-bit int in a ... argument. Fix this by casting the constant to uint64 (to match how the constant is being used). Change-Id: Ie8cb64c3910382a41c7852be7734a62f0b2d5a21 Reviewed-on: https://go-review.googlesource.com/2060 Reviewed-by: Ian Lance Taylor --- diff --git a/misc/cgo/test/issue9400_linux.go b/misc/cgo/test/issue9400_linux.go index d2386b80fc..b3b4b7952c 100644 --- a/misc/cgo/test/issue9400_linux.go +++ b/misc/cgo/test/issue9400_linux.go @@ -52,7 +52,7 @@ func test9400(t *testing.T) { // Check test pattern for i := range big { if big[i] != pattern { - t.Fatalf("entry %d of test pattern is wrong; %#x != %#x", i, big[i], pattern) + t.Fatalf("entry %d of test pattern is wrong; %#x != %#x", i, big[i], uint64(pattern)) } } }