mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-05 16:54:50 +02:00
Merge pull request #56 from cmcmurrough/master
fixed type mismatch warnings (size_t to int)
This commit is contained in:
commit
4d79066be3
4
zmq.hpp
4
zmq.hpp
@ -131,7 +131,7 @@ namespace zmq
|
||||
|
||||
inline int poll(zmq_pollitem_t const* items, size_t nitems)
|
||||
{
|
||||
return poll(items, nitems, -1 );
|
||||
return poll(items, static_cast<int>(nitems), -1);
|
||||
}
|
||||
|
||||
#ifdef ZMQ_CPP11
|
||||
@ -147,7 +147,7 @@ namespace zmq
|
||||
|
||||
inline int poll(std::vector<zmq_pollitem_t> const& items, long timeout_ = -1)
|
||||
{
|
||||
return poll(items.data(), items.size(), timeout_);
|
||||
return poll(items.data(), static_cast<int>(items.size()), timeout_);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user