diff options
author | Ian Lance Taylor <iant@golang.org> | 2019-06-25 10:58:47 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2019-06-25 21:47:04 +0000 |
commit | 6d1aaf143c879ae7acbd20a1e60bf74681bf6055 (patch) | |
tree | 9a96f50aafffc8bb44ba0bd0fe78e7e9075b4590 | |
parent | 343b7fa6261a5b0ceaafed535438249ffa5686de (diff) | |
download | go-6d1aaf143c879ae7acbd20a1e60bf74681bf6055.tar.gz go-6d1aaf143c879ae7acbd20a1e60bf74681bf6055.zip |
misc/cgo/test: use char, not int, so test works on big-endian systems
Updates #32579
Fixes #32770
Change-Id: I32d1dea7505e8ad22e11a9806e10d096924b729b
Reviewed-on: https://go-review.googlesource.com/c/go/+/183778
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
-rw-r--r-- | misc/cgo/test/test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/test/test.go b/misc/cgo/test/test.go index f7670ccf56..4286fb9cdb 100644 --- a/misc/cgo/test/test.go +++ b/misc/cgo/test/test.go @@ -853,7 +853,7 @@ static void issue29781F(char **p, int n) {} static uint16_t issue31093F(uint16_t v) { return v; } // issue 32579 -typedef struct S32579 { int data[1]; } S32579; +typedef struct S32579 { unsigned char data[1]; } S32579; */ import "C" |