diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-16 07:37:24 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-16 07:37:24 +0000 |
| commit | 127a23f3edb8a5261029d41d64c00cd4106d7e77 (patch) | |
| tree | 253506bde8535b900397f315006d8c0d7800cfda /ext/tk | |
| parent | 19d95e898247e5555396f69017666b5429eccd2e (diff) | |
* ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),
(lib_watchdog_core): tv_usec is not time_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk')
| -rw-r--r-- | ext/tk/tcltklib.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c index e8b5298f74..037031841b 100644 --- a/ext/tk/tcltklib.c +++ b/ext/tk/tcltklib.c @@ -1550,7 +1550,7 @@ eventloop_sleep(dummy) struct timeval t; t.tv_sec = (time_t)0; - t.tv_usec = (time_t)(no_event_wait*1000.0); + t.tv_usec = (long)(no_event_wait*1000.0); #ifdef HAVE_NATIVETHREAD #ifndef RUBY_USE_NATIVE_THREAD @@ -1634,7 +1634,7 @@ lib_eventloop_core(check_root, update_flag, check_var, interp) if (update_flag) DUMP1("update loop start!!"); t.tv_sec = (time_t)0; - t.tv_usec = (time_t)(no_event_wait*1000.0); + t.tv_usec = (long)(no_event_wait*1000.0); Tcl_DeleteTimerHandler(timer_token); run_timer_flag = 0; @@ -2249,9 +2249,9 @@ lib_watchdog_core(check_rootwidget) struct timeval t0, t1; t0.tv_sec = (time_t)0; - t0.tv_usec = (time_t)((NO_THREAD_INTERRUPT_TIME)*1000.0); + t0.tv_usec = (long)((NO_THREAD_INTERRUPT_TIME)*1000.0); t1.tv_sec = (time_t)0; - t1.tv_usec = (time_t)((WATCHDOG_INTERVAL)*1000.0); + t1.tv_usec = (long)((WATCHDOG_INTERVAL)*1000.0); /* check other watchdog thread */ if (!NIL_P(watchdog_thread)) { |
