mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 00:32:34 +08:00
cast rc to size_t for comparisons
avoids -Wall failures comparing int to uint
This commit is contained in:
parent
58b370df69
commit
c646ac96c0
@ -51,7 +51,7 @@ static void sender(void *vsize)
|
||||
printf("Sending %lu B ... ", zmq_msg_size(&msg));
|
||||
|
||||
rc = zmq_msg_send(&msg, push, 0);
|
||||
assert (rc == size);
|
||||
assert ((size_t) rc == size);
|
||||
|
||||
rc = zmq_msg_close(&msg);
|
||||
assert (rc == 0);
|
||||
@ -92,7 +92,7 @@ int main (void)
|
||||
} else {
|
||||
printf("Received.\n");
|
||||
}
|
||||
assert (rc == size);
|
||||
assert ((size_t) rc == size);
|
||||
zmq_msg_close(&msg);
|
||||
zmq_threadclose(send_thread);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user