From 770d0bc77cd1579a1cba33ba1eb3f06839c28c16 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 23 Jun 2011 08:51:48 +0200 Subject: Fix MSVC build Signed-off-by: Martin Sustrik --- src/xsub.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/xsub.cpp') diff --git a/src/xsub.cpp b/src/xsub.cpp index bfe12a3..98abc87 100644 --- a/src/xsub.cpp +++ b/src/xsub.cpp @@ -116,7 +116,7 @@ int zmq::xsub_t::xrecv (msg_t *msg_, int flags_) int rc = msg_->move (message); errno_assert (rc == 0); has_message = false; - more = msg_->flags () & (msg_t::more | msg_t::label); + more = msg_->flags () & (msg_t::more | msg_t::label) ? true : false; return 0; } @@ -136,7 +136,8 @@ int zmq::xsub_t::xrecv (msg_t *msg_, int flags_) // Check whether the message matches at least one subscription. // Non-initial parts of the message are passed if (more || !options.filter || match (msg_)) { - more = msg_->flags () & (msg_t::more | msg_t::label); + more = + msg_->flags () & (msg_t::more | msg_t::label) ? true : false; return 0; } -- cgit v1.2.3