summaryrefslogtreecommitdiff
path: root/src/select.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-09-27 11:18:21 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-27 11:18:21 +0200
commit16c3884a61b146040277ec61bfdbc553c883b4d6 (patch)
tree1de5c53f9a02124409f7c615c8921792de652166 /src/select.cpp
parente2f834d2947ad7e7f4e6bfb5be653af8b8a2a576 (diff)
MSVC build fixed
Diffstat (limited to 'src/select.cpp')
-rw-r--r--src/select.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/select.cpp b/src/select.cpp
index f6e5133..ae2ffe2 100644
--- a/src/select.cpp
+++ b/src/select.cpp
@@ -156,7 +156,8 @@ void zmq::select_t::loop ()
uint64_t timeout = execute_timers ();
// Wait for events.
- struct timeval tv = {timeout / 1000, timeout % 1000 * 1000};
+ struct timeval tv = {(long) (timeout / 1000),
+ (long) (timeout % 1000 * 1000)};
int rc = select (maxfd + 1, &readfds, &writefds, &exceptfds,
timeout ? &tv : NULL);