aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-09 23:57:52 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-07-09 23:57:52 +0000
commitca0f021ef176d721e3726ec542564badd0fb6281 (patch)
treef2c751cd97b5f7cc8fb7701a1fadc143b35f654e /thread.c
parent3eacde9346a5c6c2612c73a5efaddb85bac178e1 (diff)
downloadruby-ca0f021ef176d721e3726ec542564badd0fb6281.tar.gz
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
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