Merge pull request #168 from sigiesec/patch-1

Problem: implicit type conversion warning
This commit is contained in:
Luca Boccassi 2017-10-25 09:15:55 +01:00 committed by GitHub
commit 276f1b91c7

View File

@ -963,7 +963,7 @@ namespace zmq
bool wait (std::chrono::milliseconds timeout) bool wait (std::chrono::milliseconds timeout)
{ {
int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), poller_events.size (), static_cast<long>(timeout.count ())); int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), static_cast<int> (poller_events.size ()), static_cast<long>(timeout.count ()));
if (rc >= 0) { if (rc >= 0) {
std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) { std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) {
if (event.user_data != NULL) if (event.user_data != NULL)