0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 10:18:01 +08:00

Fix signed/unsigned comparison

This commit is contained in:
Richard Newton 2013-11-11 13:53:25 +00:00
parent 7c51429440
commit dee333b2ed

View File

@ -28,7 +28,7 @@ void test_system_max ()
{ {
// Keep allocating sockets until we run out of system resources // Keep allocating sockets until we run out of system resources
const int no_of_sockets = 2 * 65536; const unsigned int no_of_sockets = 2 * 65536;
void *ctx = zmq_ctx_new(); void *ctx = zmq_ctx_new();
zmq_ctx_set(ctx, ZMQ_MAX_SOCKETS, no_of_sockets); zmq_ctx_set(ctx, ZMQ_MAX_SOCKETS, no_of_sockets);
std::vector<void*> sockets; std::vector<void*> sockets;