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/router.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/router.cpp') diff --git a/src/router.cpp b/src/router.cpp index 2a19068..0d1b77e 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -159,7 +159,7 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_) } // Check whether this is the last part of the message. - more_out = msg_->flags () & (msg_t::more | msg_t::label); + more_out = msg_->flags () & (msg_t::more | msg_t::label) ? true : false; // Push the message into the pipe. If there's no out pipe, just drop it. if (current_out) { @@ -188,7 +188,7 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_) if (prefetched) { int rc = msg_->move (prefetched_msg); errno_assert (rc == 0); - more_in = msg_->flags () & (msg_t::more | msg_t::label); + more_in = msg_->flags () & (msg_t::more | msg_t::label) ? true : false; prefetched = false; return 0; } @@ -202,7 +202,7 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_) zmq_assert (inpipes [current_in].active); bool fetched = inpipes [current_in].pipe->read (msg_); zmq_assert (fetched); - more_in = msg_->flags () & (msg_t::more | msg_t::label); + more_in = msg_->flags () & (msg_t::more | msg_t::label) ? true : false; if (!more_in) { current_in++; if (current_in >= inpipes.size ()) -- cgit v1.2.3