summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-24 16:19:14 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-24 16:19:14 +0100
commit0b4172b8689b60ce254c6823d69962bbdbd031d4 (patch)
tree2e33d105a584b62cbf2f316f0f1396e4a5404d16 /src
parent476ebde6280a428e2dd8fee7c70670aa449831c9 (diff)
minor cast issues on cygwin fixed
Diffstat (limited to 'src')
-rw-r--r--src/ip.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ip.cpp b/src/ip.cpp
index 77efd29..eebfcb5 100644
--- a/src/ip.cpp
+++ b/src/ip.cpp
@@ -251,7 +251,7 @@ int zmq::resolve_ip_interface (sockaddr_storage* addr_, socklen_t *addr_len_,
}
// Use the first result.
- zmq_assert (res->ai_addrlen <= sizeof (*addr_));
+ zmq_assert ((size_t) (res->ai_addrlen) <= sizeof (*addr_));
memcpy (addr_, res->ai_addr, res->ai_addrlen);
*addr_len_ = res->ai_addrlen;
@@ -303,7 +303,7 @@ int zmq::resolve_ip_hostname (sockaddr_storage *addr_, socklen_t *addr_len_,
}
// Copy first result to output addr with hostname and service.
- zmq_assert (res->ai_addrlen <= sizeof (*addr_));
+ zmq_assert ((size_t) (res->ai_addrlen) <= sizeof (*addr_));
memcpy (addr_, res->ai_addr, res->ai_addrlen);
*addr_len_ = res->ai_addrlen;