summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/socket_base.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index dc6b5f5..16e3f0d 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -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;