mirror of
https://github.com/zeromq/libzmq.git
synced 2025-02-23 07:12:47 +01:00
Fix minor warning in MSVC build
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
parent
f4760f02c3
commit
8440de2b14
@ -513,7 +513,7 @@ int zmq::socket_base_t::send (msg_t *msg_, int flags_)
|
||||
if (unlikely (errno != EAGAIN))
|
||||
return -1;
|
||||
if (timeout > 0) {
|
||||
timeout = end - clock.now_ms ();
|
||||
timeout = (int) (end - clock.now_ms ());
|
||||
if (timeout <= 0) {
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
@ -603,7 +603,7 @@ int zmq::socket_base_t::recv (msg_t *msg_, int flags_)
|
||||
return -1;
|
||||
block = true;
|
||||
if (timeout > 0) {
|
||||
timeout = end - clock.now_ms ();
|
||||
timeout = (int) (end - clock.now_ms ());
|
||||
if (timeout <= 0) {
|
||||
errno = EAGAIN;
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user