diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-03-08 13:58:14 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-03-08 16:23:31 -0800 |
commit | d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da (patch) | |
tree | 2bec0f8ade5b0e9952cf1925a9e3cdf3a4d30580 /libgo/runtime | |
parent | 6405b40f4a6cfa0bb5194c3062cab4af10e43dd7 (diff) | |
download | gcc-d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da.zip gcc-d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da.tar.gz gcc-d5d3f15a0e04c30d5dbec09b56c14ad923a3e8da.tar.bz2 |
runtime: cast SIGSTKSZ to uintptr
In newer versions of glibc it is long, which causes a signed
comparison warning.
Fixes PR go/99458
Diffstat (limited to 'libgo/runtime')
-rw-r--r-- | libgo/runtime/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c index c037df6..38bf7a6 100644 --- a/libgo/runtime/proc.c +++ b/libgo/runtime/proc.c @@ -802,8 +802,8 @@ runtime_malg(bool allocatestack, bool signalstack, byte** ret_stack, uintptr* re if(signalstack) { stacksize = 32 * 1024; // OS X wants >= 8K, GNU/Linux >= 2K #ifdef SIGSTKSZ - if(stacksize < SIGSTKSZ) - stacksize = SIGSTKSZ; + if(stacksize < (uintptr)(SIGSTKSZ)) + stacksize = (uintptr)(SIGSTKSZ); #endif } |