diff --git a/signal.c b/signal.c index 505cd799c7..25f954033e 100644 --- a/signal.c +++ b/signal.c @@ -532,8 +532,11 @@ rb_sigaltstack_size(void) int size = 16*1024; #ifdef MINSIGSTKSZ - if (size < MINSIGSTKSZ) - size = MINSIGSTKSZ; + { + int minsigstksz = (int)MINSIGSTKSZ; + if (size < minsigstksz) + size = minsigstksz; + } #endif #if defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE) {