Skip to content

Commit e325495

Browse files
authored
Problem: implicit type conversion warning
Solution: Added explicit static_cast
1 parent 8055314 commit e325495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zmq.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ namespace zmq
963963

964964
bool wait (std::chrono::milliseconds timeout)
965965
{
966-
int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), poller_events.size (), static_cast<long>(timeout.count ()));
966+
int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), static_cast<int> (poller_events.size ()), static_cast<long>(timeout.count ()));
967967
if (rc >= 0) {
968968
std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) {
969969
if (event.user_data != NULL)

0 commit comments

Comments
 (0)