diff --git a/tests/test_many_sockets.cpp b/tests/test_many_sockets.cpp index b2d2d362..d2c3f4f6 100644 --- a/tests/test_many_sockets.cpp +++ b/tests/test_many_sockets.cpp @@ -28,7 +28,7 @@ void test_system_max () { // Keep allocating sockets until we run out of system resources - const unsigned int no_of_sockets = 2 * 65536; + const int no_of_sockets = 2 * 65536; void *ctx = zmq_ctx_new(); zmq_ctx_set(ctx, ZMQ_MAX_SOCKETS, no_of_sockets); std::vector sockets; @@ -42,7 +42,7 @@ void test_system_max () sockets.push_back(socket); } - assert(sockets.size() < no_of_sockets); + assert((int)sockets.size() < no_of_sockets); // System is out of resources, further calls to zmq_socket should return NULL. for (unsigned int i = 0; i < 10; ++i)