diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-12-03 14:02:46 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-12-03 14:02:46 +0000 |
| commit | 995c7b4634d98702f7bdf353d46e0e395c84d6be (patch) | |
| tree | 48497b04448491a539c004658535a1ba63a66b4d /src | |
| parent | 2787871ca4e9475e23c3cc4c1224b0dcf475aaf9 (diff) | |
Fix timeval field types
Diffstat (limited to 'src')
| -rw-r--r-- | src/event_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event_manager.cc b/src/event_manager.cc index 68c7c87b..7596b47f 100644 --- a/src/event_manager.cc +++ b/src/event_manager.cc @@ -87,7 +87,7 @@ void EventManager::handle_next_events(EventMode mode) auto timeout = duration_cast<microseconds>(next_timer - Clock::now()).count(); constexpr auto us = 1000000000ll; - timeval tv{ (long)(timeout / us), (long)(timeout % us) }; + timeval tv{ (time_t)(timeout / us), (suseconds_t)(timeout % us) }; int res = select(max_fd + 1, &rfds, nullptr, nullptr, &tv); // copy forced fds *after* poll, so that signal handlers can write to |
