Problem: integer literals assigned to bool variables

Solution: replace by bool literals
This commit is contained in:
Simon Giesecke
2018-05-25 23:03:52 +02:00
parent eacc805646
commit 21498700ef
4 changed files with 5 additions and 5 deletions

View File

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