diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-06-23 08:51:48 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-06-23 08:51:48 +0200 |
commit | 770d0bc77cd1579a1cba33ba1eb3f06839c28c16 (patch) | |
tree | 2764395c2a1dabc81d6b5c8d7ac9e1900898cf29 /src/router.cpp | |
parent | d1373792f7888f312cd7286fdf524a0bfe124846 (diff) |
Fix MSVC build
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/router.cpp')
-rw-r--r-- | src/router.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 ()) |