runtime: cast SIGSTKSZ to uintptr
PR go/99458 * libgo/runtime/proc.c: cast SIGSTKSZ to uintptr In newer versions of glibc it is long, which causes a signed comparison warning.
This commit is contained in:
parent
e1da328ec1
commit
3c8e29c81b
|
@ -799,8 +799,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue