diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-21 14:17:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-21 14:17:46 +0000 |
commit | ccde88c1f173732f64e026c733bc3e9dffc50344 (patch) | |
tree | d09debcf7810572d33b00b0c0eb7ffc94f9a8c29 /thread_win32.c | |
parent | 5de144f3a56eaee430680bc83d80a8a3e8134fdc (diff) | |
download | ruby-ccde88c1f173732f64e026c733bc3e9dffc50344.tar.gz |
* thread_win32.c (native_sleep): suppress warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_win32.c')
-rw-r--r-- | thread_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_win32.c b/thread_win32.c index d573632550..d5858692e9 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -301,7 +301,7 @@ rb_w32_Sleep(unsigned long msec) static void native_sleep(rb_thread_t *th, struct timeval *tv) { - const DWORD msec = (tv) ? + const volatile DWORD msec = (tv) ? (DWORD)(tv->tv_sec * 1000 + tv->tv_usec / 1000) : INFINITE; GVL_UNLOCK_BEGIN(); |