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

ruby-changes:17054

From: akr <ko1@a...>
Date: Thu, 19 Aug 2010 19:32:58 +0900 (JST)
Subject: [ruby-changes:17054] Ruby:r29052 (trunk): * thread_pthread.c (native_sleep): suppress a warning for platforms

akr	2010-08-19 19:29:30 +0900 (Thu, 19 Aug 2010)

  New Revision: 29052

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

  Log:
    * thread_pthread.c (native_sleep): suppress a warning for platforms
      which time_t is int.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29051)
+++ ChangeLog	(revision 29052)
@@ -1,3 +1,8 @@
+Thu Aug 19 19:28:47 2010  Tanaka Akira  <akr@f...>
+
+	* thread_pthread.c (native_sleep): suppress a warning for platforms
+	  which time_t is int.
+
 Thu Aug 19 18:15:50 2010  NARUSE, Yui  <naruse@r...>
 
 	* tool/merger.rb: Add a tool to merge commits between branches.
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 29051)
+++ thread_pthread.c	(revision 29052)
@@ -612,7 +612,7 @@
 	}
     }
 
-    thread_debug("native_sleep %ld\n", tv ? tv->tv_sec : -1);
+    thread_debug("native_sleep %ld\n", (long)(tv ? tv->tv_sec : -1));
     GVL_UNLOCK_BEGIN();
     {
 	pthread_mutex_lock(&th->interrupt_lock);

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

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