summaryrefslogtreecommitdiff
path: root/src/dist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dist.cpp')
-rw-r--r--src/dist.cpp2
1 files changed, 1 insertions, 1 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;) {