diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2010-02-24 16:19:14 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2010-02-24 16:19:14 +0100 |
commit | 0b4172b8689b60ce254c6823d69962bbdbd031d4 (patch) | |
tree | 2e33d105a584b62cbf2f316f0f1396e4a5404d16 /src | |
parent | 476ebde6280a428e2dd8fee7c70670aa449831c9 (diff) |
minor cast issues on cygwin fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/ip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |