[前][次][番号順一覧][スレッド一覧]

ruby-changes:26364

From: kosaki <ko1@a...>
Date: Sun, 16 Dec 2012 02:11:01 +0900 (JST)
Subject: [ruby-changes:26364] kosaki:r38415 (trunk): * signal.c (rb_sigaltstack_size): cast sysconf() return value

kosaki	2012-12-16 02:10:50 +0900 (Sun, 16 Dec 2012)

  New Revision: 38415

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38415

  Log:
    * signal.c (rb_sigaltstack_size): cast sysconf() return value
      explicitly. Fix compile error on Mac OS X.

  Modified files:
    trunk/ChangeLog
    trunk/signal.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38414)
+++ ChangeLog	(revision 38415)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Dec 16 02:04:41 2012  KOSAKI Motohiro  <kosaki.motohiro@g...>
+
+	* signal.c (rb_sigaltstack_size): cast sysconf() return value
+	  explicitly. Fix compile error on Mac OS X.
+
 Sun Dec 16 00:39:43 2012  CHIKANAGA Tomoyuki  <nagachika@r...>
 
 	* cont.c (rb_fiber_start): don't enqueue Qnil to async_errinfo_queue.
Index: signal.c
===================================================================
--- signal.c	(revision 38414)
+++ signal.c	(revision 38415)
@@ -459,7 +459,7 @@ int rb_sigaltstack_size(void) https://github.com/ruby/ruby/blob/trunk/signal.c#L459
 #if defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE)
     {
 	int pagesize;
-	pagesize = sysconf(_SC_PAGE_SIZE);
+	pagesize = (int)sysconf(_SC_PAGE_SIZE);
 	if (size < pagesize)
 	    size = pagesize;
     }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]