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:
Ian Lance Taylor 2021-03-08 15:23:40 -08:00
parent e1da328ec1
commit 3c8e29c81b
1 changed files with 2 additions and 2 deletions

View File

@ -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
}