From 9eef1971f02f6a0609779b4240f8a885c5a4dd35 Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 9 Jul 2016 23:57:52 +0000 Subject: * thread.c: Fixed implicit conversion error with Apple clang-800.0.31 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index a53117ab82..023405bc89 100644 --- a/thread.c +++ b/thread.c @@ -1085,7 +1085,7 @@ getclockofday(struct timeval *tp) 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 -- cgit v1.2.1