diff options
| author | Daniƫl de Kok <me@danieldk.eu> | 2018-08-21 05:09:24 +0000 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-08-22 00:00:53 +0000 |
| commit | d2ace0ce5f764a5bfb2c82975a2614c97d569cd6 (patch) | |
| tree | ede126e6b85b9100fefb0272d9af485012c03fc2 /src/encoding | |
| parent | 2ce8411239212b80a0d266dc123bb5b1ec84d211 (diff) | |
| download | go-d2ace0ce5f764a5bfb2c82975a2614c97d569cd6.tar.xz | |
cmd/cgo: perform explicit conversion in _GoStringLen
_GoStringLen performs an implicit conversion from intgo to size_t.
Explicitly cast to size_t.
This change avoids warnings when using cgo with CFLAGS:
-Wconversion.
Change-Id: I58f75a35e17f669a67f9805061c041b03eddbb5c
GitHub-Last-Rev: b5df1ac0c3c90360fa1d22c069e0f126e9f894d8
GitHub-Pull-Request: golang/go#27092
Reviewed-on: https://go-review.googlesource.com/129820
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions
