mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 22:50:19 +02:00
Problem: complex unnecessary ternary expressions
Solution: simplify to comparison against 0
This commit is contained in:
@@ -156,7 +156,7 @@ int zmq::session_base_t::pull_msg (msg_t *msg_)
|
||||
return -1;
|
||||
}
|
||||
|
||||
incomplete_in = msg_->flags () & msg_t::more ? true : false;
|
||||
incomplete_in = (msg_->flags () & msg_t::more) != 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user