summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-17 06:16:55 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-17 06:16:55 +0000
commit83c228fd842134117f6372d0c00ddf2a044ad9b7 (patch)
tree52b98bfb046af7307df326225325295595e22490 /thread.c
parent423ca671306259789afb99486f087e6eb25f4b2d (diff)
merges r20766 from trunk into ruby_1_9_1.
* thread.c (sleep_timeval): cast tv_usec to long to shut up warnings on OSX. [ruby-dev:37449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 4ab0788534..c154c057b6 100644
--- a/thread.c
+++ b/thread.c
@@ -805,8 +805,8 @@ sleep_timeval(rb_thread_t *th, struct timeval tv)
if (to.tv_sec < tvn.tv_sec) break;
if (to.tv_sec == tvn.tv_sec && to.tv_usec <= tvn.tv_usec) break;
thread_debug("sleep_timeval: %ld.%.6ld > %ld.%.6ld\n",
- (long)to.tv_sec, to.tv_usec,
- (long)tvn.tv_sec, tvn.tv_usec);
+ (long)to.tv_sec, (long)to.tv_usec,
+ (long)tvn.tv_sec, (long)tvn.tv_usec);
tv.tv_sec = to.tv_sec - tvn.tv_sec;
if ((tv.tv_usec = to.tv_usec - tvn.tv_usec) < 0) {
--tv.tv_sec;