Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit f60f534

Browse files
committed
zmqeventconsumer.cpp: fix sign-compare warning
1 parent e115d4e commit f60f534

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cppapi/client/eventconsumer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ private :
638638
void print_error_message(const char *mess) {ApiUtil *au=ApiUtil::instance();au->print_error_message(mess);}
639639
void set_ctrl_sock_bound() {sock_bound_mutex.lock();ctrl_socket_bound=true;sock_bound_mutex.unlock();}
640640
bool is_ctrl_sock_bound() {bool _b;sock_bound_mutex.lock();_b=ctrl_socket_bound;sock_bound_mutex.unlock();return _b;}
641-
void set_socket_hwm(size_t hwm);
641+
void set_socket_hwm(int hwm);
642642

643643
bool check_zmq_endpoint(const string &);
644644

cppapi/client/zmqeventconsumer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ bool ZmqEventConsumer::process_ctrl(zmq::message_t &received_ctrl,zmq::pollitem_
886886

887887
if (connect_pub == true)
888888
{
889-
set_socket_hwm(sub_hwm);
889+
set_socket_hwm((int) sub_hwm);
890890

891891
event_sub_sock->connect(endpoint);
892892
if (force_connect == 0)
@@ -3502,7 +3502,7 @@ void ZmqEventConsumer::get_subscribed_event_ids(DeviceProxy *_dev,vector<int> &_
35023502
*
35033503
* @param hwm: new ZMQ receive buffer high water mark
35043504
*/
3505-
void ZmqEventConsumer::set_socket_hwm(size_t hwm)
3505+
void ZmqEventConsumer::set_socket_hwm(int hwm)
35063506
{
35073507
int current_sub_hwm = SUB_HWM;
35083508
size_t curr_sub_hw_size = sizeof(current_sub_hwm);

0 commit comments

Comments
 (0)