diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 14:49:31 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 14:49:31 +0000 |
| commit | 354f5324d9c8061b79275db7b8219547e52f1ff2 (patch) | |
| tree | 592d112ebc5edd322ebc8d120e38e014728fe5a6 | |
| parent | 1267dd8cceeca9e1ef87d55d8e91ab6c09a880db (diff) | |
| download | ruby-354f5324d9c8061b79275db7b8219547e52f1ff2.tar.gz ruby-354f5324d9c8061b79275db7b8219547e52f1ff2.tar.xz ruby-354f5324d9c8061b79275db7b8219547e52f1ff2.zip | |
* thread.c (sleep_timeval): cast tv_usec to long to shut up
warnings on OSX. [ruby-dev:37449]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | thread.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Dec 15 23:48:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * thread.c (sleep_timeval): cast tv_usec to long to shut up + warnings on OSX. [ruby-dev:37449] + Mon Dec 15 23:34:04 2008 Tanaka Akira <akr@fsij.org> * ext/pty/pty.c (pty_open): set FMODE_SYNC and FMODE_DUPLEX. @@ -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; |
