]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: use size_t in sizeof result comparison
authorAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 16 May 2018 09:43:02 +0000 (11:43 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 16 May 2018 12:01:16 +0000 (12:01 +0000)
commit4102e6ff56eee8fd6a1689f4bcf9d5a92cc44a6c
tree2a6539c0447954cfdc67a20ba0ecb88e327130ba
parent3868a371a85f2edbf2132d0bd5a6ed9193310dd7
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>
src/runtime/cgo/gcc_freebsd_sigaction.c
src/runtime/cgo/gcc_sigaction.c