Problem: ternary operator used with boolean literals\n\nSolution: Use comparison with 0 instead

This commit is contained in:
Simon Giesecke 2018-05-17 14:58:37 +02:00
parent 22b72bb678
commit ad781319ef
2 changed files with 2 additions and 2 deletions

View File

@ -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_);

View File

@ -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)