Commit c646ac96 authored by MinRK's avatar MinRK

cast rc to size_t for comparisons

avoids -Wall failures comparing int to uint
parent 58b370df
...@@ -51,7 +51,7 @@ static void sender(void *vsize) ...@@ -51,7 +51,7 @@ static void sender(void *vsize)
printf("Sending %lu B ... ", zmq_msg_size(&msg)); printf("Sending %lu B ... ", zmq_msg_size(&msg));
rc = zmq_msg_send(&msg, push, 0); rc = zmq_msg_send(&msg, push, 0);
assert (rc == size); assert ((size_t) rc == size);
rc = zmq_msg_close(&msg); rc = zmq_msg_close(&msg);
assert (rc == 0); assert (rc == 0);
...@@ -92,7 +92,7 @@ int main (void) ...@@ -92,7 +92,7 @@ int main (void)
} else { } else {
printf("Received.\n"); printf("Received.\n");
} }
assert (rc == size); assert ((size_t) rc == size);
zmq_msg_close(&msg); zmq_msg_close(&msg);
zmq_threadclose(send_thread); zmq_threadclose(send_thread);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment