mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-31 22:45:39 +01:00
Merge pull request #168 from sigiesec/patch-1
Problem: implicit type conversion warning
This commit is contained in:
commit
276f1b91c7
2
zmq.hpp
2
zmq.hpp
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user