File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,17 +127,17 @@ namespace zmq
127
127
int errnum;
128
128
};
129
129
130
- inline int poll (zmq_pollitem_t const * items_, int nitems_, long timeout_ = -1 )
130
+ inline int poll (zmq_pollitem_t const * items_, size_t nitems_, long timeout_ = -1 )
131
131
{
132
- int rc = zmq_poll (const_cast <zmq_pollitem_t *>(items_), nitems_, timeout_);
132
+ int rc = zmq_poll (const_cast <zmq_pollitem_t *>(items_), static_cast < int >( nitems_) , timeout_);
133
133
if (rc < 0 )
134
134
throw error_t ();
135
135
return rc;
136
136
}
137
137
138
138
inline int poll (zmq_pollitem_t const * items, size_t nitems)
139
139
{
140
- return poll (items, static_cast < int >( nitems) , -1 );
140
+ return poll (items, nitems, -1 );
141
141
}
142
142
143
143
#ifdef ZMQ_CPP11
@@ -153,7 +153,7 @@ namespace zmq
153
153
154
154
inline int poll (std::vector<zmq_pollitem_t > const & items, long timeout_ = -1 )
155
155
{
156
- return poll (items.data (), static_cast < int >( items.size () ), timeout_);
156
+ return poll (items.data (), items.size (), timeout_);
157
157
}
158
158
#endif
159
159
You can’t perform that action at this time.
0 commit comments