From fd8d6d471f486fd2392a17774f4c26e99af21f66 Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Thu, 5 Dec 2013 07:04:21 +0800 Subject: [PATCH] use enum retired_fd instead of -1 using -1 causes a warning on Windows platform because SOCKET is unsigned. --- src/socket_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket_base.cpp b/src/socket_base.cpp index 76762d2e..8ff15bc0 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -121,7 +121,7 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_, errno = EINVAL; return NULL; } - if (s->mailbox.get_fd () == -1) + if (s->mailbox.get_fd () == retired_fd) return NULL; alloc_assert (s);