mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Merge pull request #1181 from whoshuu/patch-1
Fix non-constant-expression narrowing
This commit is contained in:
commit
19712d3fbb
@ -163,8 +163,12 @@ void zmq::select_t::loop ()
|
||||
memcpy (&exceptfds, &source_set_err, sizeof source_set_err);
|
||||
|
||||
// Wait for events.
|
||||
#ifdef ZMQ_HAVE_OSX
|
||||
struct timeval tv = {(long) (timeout / 1000), timeout % 1000 * 1000};
|
||||
#else
|
||||
struct timeval tv = {(long) (timeout / 1000),
|
||||
(long) (timeout % 1000 * 1000)};
|
||||
#endif
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
int rc = select (0, &readfds, &writefds, &exceptfds,
|
||||
timeout ? &tv : NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user