mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-02 17:50:52 +02:00
Problem: implicit type conversion warning
Solution: Added explicit static_cast
This commit is contained in:
parent
8055314722
commit
e325495a39
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