mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-06 01:03:20 +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)
|
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
|
#ifdef ZMQ_CPP11
|
||||||
@ -147,7 +147,7 @@ namespace zmq
|
|||||||
|
|
||||||
inline int poll(std::vector<zmq_pollitem_t> const& items, long timeout_ = -1)
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user