diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-09-01 07:26:17 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-09-01 07:26:17 +0200 |
commit | 65bb75863dde3ecd9a19d7fafc1ad1b0166a4770 (patch) | |
tree | 54dac9e92463dd6601f4c7d3827fe6999a89d247 | |
parent | 940c5b346b35f2d42360b3371757eb98ef8ba78f (diff) |
Fixed warnings on Win64
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | src/dist.cpp | 2 | ||||
-rw-r--r-- | src/socket_base.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dist.cpp b/src/dist.cpp index e088e5e..23e790d 100644 --- a/src/dist.cpp +++ b/src/dist.cpp @@ -139,7 +139,7 @@ void zmq::dist_t::distribute (msg_t *msg_, int flags_) // Add matching-1 references to the message. We already hold one reference, // that's why -1. - msg_->add_refs (matching - 1); + msg_->add_refs ((int) matching - 1); // Push copy of the message to each matching pipe. for (pipes_t::size_type i = 0; i < matching;) { diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 593ff66..4209a69 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -776,7 +776,7 @@ void zmq::socket_base_t::process_term (int linger_) // Ask all attached pipes to terminate. for (pipes_t::size_type i = 0; i != pipes.size (); ++i) pipes [i]->terminate (false); - register_term_acks (pipes.size ()); + register_term_acks ((int) pipes.size ()); // Continue the termination process immediately. own_t::process_term (linger_); |