diff options
author | Alon Levy <alevy@redhat.com> | 2010-12-06 17:55:16 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2010-12-08 17:11:45 +0200 |
commit | 06749bd66bb3e689bc96be1a3739747912ee0020 (patch) | |
tree | df26e6897c54367f176d3bdeff757896c090a9d5 /client/process_loop.cpp | |
parent | 2cd07dd8f3dd9bf34b1725bb015aecefc93b3454 (diff) | |
download | spice-06749bd66bb3e689bc96be1a3739747912ee0020.tar.gz spice-06749bd66bb3e689bc96be1a3739747912ee0020.tar.xz spice-06749bd66bb3e689bc96be1a3739747912ee0020.zip |
mingw32 build: fix signed/unsigned warnings as errors
Diffstat (limited to 'client/process_loop.cpp')
-rw-r--r-- | client/process_loop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/process_loop.cpp b/client/process_loop.cpp index ec9cdd24..d7e6744f 100644 --- a/client/process_loop.cpp +++ b/client/process_loop.cpp @@ -221,7 +221,7 @@ void TimersQueue::deactivate_interval_timer(Timer* timer) } } -int TimersQueue::get_soonest_timeout() +unsigned int TimersQueue::get_soonest_timeout() { RecurciveLock lock(_timers_lock); TimersSet::iterator iter; @@ -236,7 +236,7 @@ int TimersQueue::get_soonest_timeout() if (next_time <= now) { return 0; } - return (int)(next_time - now); + return (next_time - now); } @@ -392,7 +392,7 @@ void ProcessLoop::deactivate_interval_timer(Timer* timer) _timers_queue.deactivate_interval_timer(timer); } -int ProcessLoop::get_soonest_timeout() +unsigned ProcessLoop::get_soonest_timeout() { return _timers_queue.get_soonest_timeout(); } |