From 8440de2b14876ecc6b39816528ef0793c6e34598 Mon Sep 17 00:00:00 2001
From: Martin Sustrik <sustrik@250bpm.com>
Date: Mon, 20 Jun 2011 08:11:48 +0200
Subject: Fix minor warning in MSVC build

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
---
 src/socket_base.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

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;
-- 
cgit v1.2.3