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

ruby-changes:43546

From: hsbt <ko1@a...>
Date: Sun, 10 Jul 2016 08:58:04 +0900 (JST)
Subject: [ruby-changes:43546] hsbt:r55619 (trunk): * thread.c: Fixed implicit conversion error with Apple clang-800.0.31

hsbt	2016-07-10 08:57:52 +0900 (Sun, 10 Jul 2016)

  New Revision: 55619

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55619

  Log:
    * thread.c: Fixed implicit conversion error with Apple clang-800.0.31

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55618)
+++ ChangeLog	(revision 55619)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Jul 10 08:57:20 2016  SHIBATA Hiroshi  <hsbt@r...>
+
+	* thread.c: Fixed implicit conversion error with Apple clang-800.0.31
+
 Sat Jul  9 12:43:09 2016  Shugo Maeda  <shugo@r...>
 
 	* lib/getoptlong.rb: use false instead of FALSE.
Index: thread.c
===================================================================
--- thread.c	(revision 55618)
+++ thread.c	(revision 55619)
@@ -1085,7 +1085,7 @@ getclockofday(struct timeval *tp) https://github.com/ruby/ruby/blob/trunk/thread.c#L1085
 
     if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
 	tp->tv_sec = ts.tv_sec;
-	tp->tv_usec = ts.tv_nsec / 1000;
+	tp->tv_usec = (int)(ts.tv_nsec / 1000);
     }
     else
 #endif

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

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