1
0
mirror of https://github.com/golang/go synced 2024-11-08 05:26:15 -07:00
go/src/runtime/cgo
Alberto Donizetti 4102e6ff56 runtime/cgo: use size_t in sizeof result comparison
When a variable of type int is compared with sizeof's return
value, gcc warns:

  comparison between signed and unsigned integer expressions

Change the type of a couple loop indices that looped over sizeof from
int to size_t to silence the warnings.

Fixes #25411

Change-Id: I2c7858f84237e77945651c7b1b6a75b97edcef65
Reviewed-on: https://go-review.googlesource.com/113335
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-05-16 12:01:16 +00:00
..
asm_386.s
asm_amd64.s
asm_arm64.s runtime: use NOFRAME on arm64 2018-02-12 21:41:31 +00:00
asm_arm.s
asm_mips64x.s cmd/compile: add softfloat support to mips64{,le} 2018-04-27 14:50:17 +00:00
asm_mipsx.s runtime: use NOFRAME on mips and mips64 2018-02-12 21:41:32 +00:00
asm_nacl_amd64p32.s
asm_ppc64x.s
asm_s390x.s
asm_wasm.s runtime: add js/wasm architecture 2018-05-08 00:17:34 +00:00
callbacks_traceback.go
callbacks.go
cgo.go
dragonfly.go
freebsd.go
gcc_386.S
gcc_amd64.S
gcc_android_386.c
gcc_android_amd64.c
gcc_android_arm64.c
gcc_android_arm.c
gcc_android.c
gcc_arm64.S
gcc_arm.S
gcc_context.c
gcc_darwin_386.c runtime: use fixed TLS offsets on darwin/amd64 and darwin/386 2018-04-11 00:04:30 +00:00
gcc_darwin_amd64.c runtime: use fixed TLS offsets on darwin/amd64 and darwin/386 2018-04-11 00:04:30 +00:00
gcc_darwin_arm64.c misc/ios,runtime/cgo: remove SIGINT handshake for the iOS exec wrapper 2018-04-10 16:30:07 +00:00
gcc_darwin_arm.c misc/ios,runtime/cgo: remove SIGINT handshake for the iOS exec wrapper 2018-04-10 16:30:07 +00:00
gcc_dragonfly_amd64.c
gcc_fatalf.c all: enable c-shared/c-archive support for freebsd/amd64 2018-03-21 21:56:20 +00:00
gcc_freebsd_386.c
gcc_freebsd_amd64.c all: enable c-shared/c-archive support for freebsd/amd64 2018-03-21 21:56:20 +00:00
gcc_freebsd_arm.c
gcc_freebsd_sigaction.c runtime/cgo: use size_t in sizeof result comparison 2018-05-16 12:01:16 +00:00
gcc_libinit_windows.c
gcc_libinit.c
gcc_linux_386.c
gcc_linux_amd64.c
gcc_linux_arm64.c runtime: enable memory sanitizer on arm64 2018-05-02 17:52:14 +00:00
gcc_linux_arm.c
gcc_linux_mips64x.c
gcc_linux_mipsx.c
gcc_linux_ppc64x.c
gcc_linux_s390x.c
gcc_mips64x.S cmd/compile: add softfloat support to mips64{,le} 2018-04-27 14:50:17 +00:00
gcc_mipsx.S
gcc_mmap.c runtime: enable memory sanitizer on arm64 2018-05-02 17:52:14 +00:00
gcc_netbsd_386.c
gcc_netbsd_amd64.c
gcc_netbsd_arm.c
gcc_openbsd_386.c
gcc_openbsd_amd64.c
gcc_ppc64x.S
gcc_s390x.S
gcc_setenv.c
gcc_sigaction.c runtime/cgo: use size_t in sizeof result comparison 2018-05-16 12:01:16 +00:00
gcc_signal2_darwin_armx.c
gcc_signal_darwin_armx.c
gcc_signal_darwin_lldb.c
gcc_solaris_amd64.c
gcc_traceback.c
gcc_util.c
gcc_windows_386.c
gcc_windows_amd64.c
iscgo.go
libcgo_unix.h
libcgo.h runtime/cgo: make sure nil is undefined before defining it 2018-03-07 21:08:19 +00:00
mmap.go runtime: enable memory sanitizer on arm64 2018-05-02 17:52:14 +00:00
netbsd.go
openbsd.go
setenv.go
sigaction.go runtime: enable memory sanitizer on arm64 2018-05-02 17:52:14 +00:00
signal_darwin_arm64.s runtime: use NOFRAME on arm64 2018-02-12 21:41:31 +00:00
signal_darwin_arm.s
signal_darwin_armx.go