Problem: implicit type conversion warning

Solution: Added explicit static_cast
This commit is contained in:
Simon Giesecke 2017-10-25 10:13:07 +02:00 committed by GitHub
parent 8055314722
commit e325495a39

View File

@ -963,7 +963,7 @@ namespace zmq
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) {
std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) {
if (event.user_data != NULL)