mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-14 23:07:59 +02:00
Problem: integer literals assigned to bool variables
Solution: replace by bool literals
This commit is contained in:
@@ -162,7 +162,7 @@ int zmq::xpub_t::xsetsockopt (int option_,
|
||||
}
|
||||
if (option_ == ZMQ_XPUB_VERBOSE) {
|
||||
verbose_subs = (*static_cast<const int *> (optval_) != 0);
|
||||
verbose_unsubs = 0;
|
||||
verbose_unsubs = false;
|
||||
} else if (option_ == ZMQ_XPUB_VERBOSER) {
|
||||
verbose_subs = (*static_cast<const int *> (optval_) != 0);
|
||||
verbose_unsubs = verbose_subs;
|
||||
|
Reference in New Issue
Block a user