mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 08:31:46 +02:00
Problem: complex unnecessary ternary expressions
Solution: simplify to comparison against 0
This commit is contained in:
@@ -1576,7 +1576,7 @@ void zmq::socket_base_t::extract_flags (msg_t *msg_)
|
||||
zmq_assert (options.recv_routing_id);
|
||||
|
||||
// Remove MORE flag.
|
||||
rcvmore = msg_->flags () & msg_t::more ? true : false;
|
||||
rcvmore = (msg_->flags () & msg_t::more) != 0;
|
||||
}
|
||||
|
||||
int zmq::socket_base_t::monitor (const char *addr_, int events_)
|
||||
|
Reference in New Issue
Block a user