]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/cgo, runtime/cgo: avoid GCC/clang conversion warnings
authorIan Lance Taylor <iant@golang.org>
Thu, 9 Sep 2021 21:04:43 +0000 (14:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 9 Sep 2021 22:18:05 +0000 (22:18 +0000)
commit426ff3746fb2ebb777e32572b6eda5e19263ace9
treee4954deabf3174a41a8f29b34b3ea178d66b3bfd
parent73483df406af39e6c244fd2fb90b41c4cfecd51e
cmd/cgo, runtime/cgo: avoid GCC/clang conversion warnings

Add explicit conversions to avoid warnings from -Wsign-conversion and
-Wshorten-64-to-32. Also avoid runtime errors from -fsanitize=undefined.

Fixes #48121

Change-Id: I29dc8d976884fc42826392c10f1e1759bb1a3989
Reviewed-on: https://go-review.googlesource.com/c/go/+/348739
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/cgo/out.go
src/runtime/cgo/gcc_sigaction.c