Commit 8440de2b authored by Martin Sustrik's avatar Martin Sustrik

Fix minor warning in MSVC build

Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
parent f4760f02
...@@ -513,7 +513,7 @@ int zmq::socket_base_t::send (msg_t *msg_, int flags_) ...@@ -513,7 +513,7 @@ int zmq::socket_base_t::send (msg_t *msg_, int flags_)
if (unlikely (errno != EAGAIN)) if (unlikely (errno != EAGAIN))
return -1; return -1;
if (timeout > 0) { if (timeout > 0) {
timeout = end - clock.now_ms (); timeout = (int) (end - clock.now_ms ());
if (timeout <= 0) { if (timeout <= 0) {
errno = EAGAIN; errno = EAGAIN;
return -1; return -1;
...@@ -603,7 +603,7 @@ int zmq::socket_base_t::recv (msg_t *msg_, int flags_) ...@@ -603,7 +603,7 @@ int zmq::socket_base_t::recv (msg_t *msg_, int flags_)
return -1; return -1;
block = true; block = true;
if (timeout > 0) { if (timeout > 0) {
timeout = end - clock.now_ms (); timeout = (int) (end - clock.now_ms ());
if (timeout <= 0) { if (timeout <= 0) {
errno = EAGAIN; errno = EAGAIN;
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment