diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-19 10:29:30 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-19 10:29:30 +0000 |
commit | b73ea4b64ac0d7ad9666b4325d94f180849f97f3 (patch) | |
tree | 157331186605d5ededd620bd2a51401c07d9bbbd /thread_pthread.c | |
parent | 46d0e03036d687cb2afd39878ddf33f06a25cee5 (diff) |
* thread_pthread.c (native_sleep): suppress a warning for platforms
which time_t is int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index e832b82fe1..e835bf81cd 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -612,7 +612,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv) } } - thread_debug("native_sleep %ld\n", tv ? tv->tv_sec : -1); + thread_debug("native_sleep %ld\n", (long)(tv ? tv->tv_sec : -1)); GVL_UNLOCK_BEGIN(); { pthread_mutex_lock(&th->interrupt_lock); |