Fix MSVC build

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-06-23 08:51:48 +02:00
parent d1373792f7
commit 770d0bc77c
14 changed files with 51 additions and 20 deletions

View File

@@ -75,7 +75,7 @@ int zmq::lb_t::send (msg_t *msg_, int flags_)
// switch back to non-dropping mode.
if (dropping) {
more = msg_->flags () & (msg_t::more | msg_t::label);
more = msg_->flags () & (msg_t::more | msg_t::label) ? true : false;
if (!more)
dropping = false;
@@ -88,7 +88,8 @@ int zmq::lb_t::send (msg_t *msg_, int flags_)
while (active > 0) {
if (pipes [current]->write (msg_)) {
more = msg_->flags () & (msg_t::more | msg_t::label);
more =
msg_->flags () & (msg_t::more | msg_t::label) ? true : false;
break;
}