mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 18:40:27 +01:00
Problem: ternary operator used with boolean literals\n\nSolution: Use comparison with 0 instead
This commit is contained in:
parent
22b72bb678
commit
ad781319ef
@ -52,7 +52,7 @@ int zmq::rep_t::xsend (msg_t *msg_)
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool more = msg_->flags () & msg_t::more ? true : false;
|
||||
bool more = (msg_->flags () & msg_t::more) != 0;
|
||||
|
||||
// Push message to the reply pipe.
|
||||
int rc = router_t::xsend (msg_);
|
||||
|
@ -126,7 +126,7 @@ int zmq::req_t::xsend (msg_t *msg_)
|
||||
}
|
||||
}
|
||||
|
||||
bool more = msg_->flags () & msg_t::more ? true : false;
|
||||
bool more = (msg_->flags () & msg_t::more) != 0;
|
||||
|
||||
int rc = dealer_t::xsend (msg_);
|
||||
if (rc != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user