Commit ad781319 authored by Simon Giesecke's avatar Simon Giesecke

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

parent 22b72bb6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment