use enum retired_fd instead of -1

using -1 causes a warning on Windows platform because SOCKET is unsigned.
This commit is contained in:
KIU Shueng Chuan 2013-12-05 07:04:21 +08:00 committed by Pieter Hintjens
parent 97e1ecce22
commit 3dc89feafc

View File

@ -119,7 +119,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);